This commit is contained in:
teldra 2021-05-09 21:52:18 +02:00
parent 3eab400776
commit f3b440aa21
2 changed files with 5 additions and 4 deletions

View File

@ -23,12 +23,12 @@ if mountpoint -q "${dest}"; then
fi
export run="config"
for i in $(find "${dir}/step1" -mindepth 1 -maxdepth 1 -type f | sort -n ); do
for i in $(find "${step}1" -mindepth 1 -maxdepth 1 -type f | sort -n ); do
test -f "${i}" && source "${i}"
done
export run="postconfig"
for i in $(find "${dir}/step2" -mindepth 1 -maxdepth 1 -type f | sort -n ); do
for i in $(find "${step}2" -mindepth 1 -maxdepth 1 -type f | sort -n ); do
test -f "${i}" && source "${i}"
done

View File

@ -1,5 +1,6 @@
#!/bin/bash
dir="/tmp/installer"
step="${dir}/step"
wrksrc="${dir}"/tmp
functions="${dir}/functions"
FILESDIR="${dir}/files"
@ -26,11 +27,11 @@ for i in $(seq 0 "$(( max - 1 ))"); do
done
export run="install"
for i in $(find "${dir}/step3" -mindepth 1 -maxdepth 1 -type f | sort -n ); do
for i in $(find "${step}3" -mindepth 1 -maxdepth 1 -type f | sort -n ); do
test -f "${i}" && source "${i}"
done
export run="post"
for i in $(find "${dir}/step3" -mindepth 1 -maxdepth 1 -type f | sort -n); do
for i in $(find "${step}3" -mindepth 1 -maxdepth 1 -type f | sort -n); do
test -f "${i}" && source "${i}"
done