diff --git a/main.sh b/main.sh index 0f563b5..8e28a5f 100755 --- a/main.sh +++ b/main.sh @@ -19,15 +19,15 @@ remote="https://void.cijber.net/current/" source "${functions}"/functions umounter "${dest}" - -export run="pre" +set -x +export run="config" for i in $(find "${modules}" -mindepth 1 -maxdepth 1 -type d | sort -n ); do - test -f "${i}"/pre && source "${i}"/pre + test -f "${i}"/config && source "${i}"/config done -export run="preinstall" +export run="postconfig" for i in $(find "${modules}" -mindepth 1 -maxdepth 1 -type d | sort -n ); do - test -f "${i}"/preinstall && source "${i}"/preinstall + test -f "${i}"/postconfig && source "${i}"/postconfig done mkdir -p "${dest}"/tmp/installer/tmp "${dest}"/etc