fix password c error on setup

This commit is contained in:
rootzoll 2021-10-10 10:43:38 +02:00
parent 31d6ef9e34
commit 5f0760dcfa

View File

@ -94,6 +94,7 @@ if [ "${setupPhase}" == "setup" ]; then
# menu RECOVER menu option
if [ "${menuresult}" == "4" ]; then
setupPhase="${orgSetupPhase}"
sudo sed -i "s/^setupPhase=.*/setupPhase='${setupPhase}'/g" /home/admin/raspiblitz.info
# proceed with provision (mark Password A to be set)
echo "# OK update process starting .."
echo "setPasswordA=1" >> $SETUPFILE
@ -102,6 +103,7 @@ if [ "${setupPhase}" == "setup" ]; then
# menu MIGRATE menu option
if [ "${menuresult}" == "5" ]; then
setupPhase="${orgSetupPhase}"
sudo sed -i "s/^setupPhase=.*/setupPhase='${setupPhase}'/g" /home/admin/raspiblitz.info
# mark migration to happen on provision
echo "migrationOS='${hddGotMigrationData}'" >> $SETUPFILE
# user needs to reset password A, B & C