#4708 add more missing-passworda debug (#4750)

This commit is contained in:
/rootzoll 2024-09-24 20:16:11 +02:00 committed by GitHub
parent fd02f9753c
commit fa9ff68760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -887,7 +887,7 @@ if [ ${isMounted} -eq 0 ]; then
# Set Password A (in all cases)
if [ "${passwordA}" == "" ]; then
/home/admin/config.scripts/blitz.error.sh _bootstrap.sh "missing-passworda" "missing passwordA in (${setupFile})" "" ${logFile}
/home/admin/config.scripts/blitz.error.sh _bootstrap.sh "missing-passworda-2" "missing passwordA(2) in (${setupFile})" "" ${logFile}
exit 1
fi

View File

@ -285,6 +285,13 @@ fi
echo "# Starting passwords dialog ..."
sudo /home/admin/setup.scripts/dialogPasswords.sh || exit 1
# check if password A is set
source ${SETUPFILE}
if [ "${passwordA}" == "" ]; then
/home/admin/config.scripts/blitz.error.sh $(basename "$0") "missing-passworda-1" "missing passwordA(1) in (${SETUPFILE}) after dialogPasswords.sh" ""
exit 1
fi
# set flag for bootstrap process to kick-off provision process
/home/admin/_cache.sh set state "waitprovision"