mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-04 01:48:23 +02:00
check password input
This commit is contained in:
parent
0ebf134714
commit
64e6b43554
@ -281,7 +281,7 @@ fi
|
||||
# for fresh setup & migration
|
||||
|
||||
echo "# Starting passwords dialog ..."
|
||||
sudo /home/admin/setup.scripts/dialogPasswords.sh
|
||||
sudo /home/admin/setup.scripts/dialogPasswords.sh || exit 1
|
||||
|
||||
# set flag for bootstrap process to kick-off provision process
|
||||
/home/admin/_cache.sh set state "waitprovision"
|
||||
|
@ -71,6 +71,10 @@ if [ "${setPasswordA}" == "1" ]; then
|
||||
sudo /home/admin/config.scripts/blitz.passwords.sh set x "PASSWORD A - Main User Password" $_temp
|
||||
password=$(sudo cat $_temp)
|
||||
sudo rm $_temp
|
||||
if [ "${password}" == "" ]; then
|
||||
echo "FAIL password A cannot be empty - stopped setup"
|
||||
exit 1
|
||||
fi
|
||||
sudo sed -i '/^passwordA=/d' $SETUPFILE
|
||||
echo "passwordA='${password}'" >> $SETUPFILE
|
||||
dialog --backtitle "RaspiBlitz - Setup" --msgbox "\nThanks - Password A accepted.\n\nUse this password for future SSH or Web-Admin logins to your RaspiBlitz & for sudo commands." 11 35
|
||||
@ -82,6 +86,10 @@ if [ "${setPasswordB}" == "1" ]; then
|
||||
sudo /home/admin/config.scripts/blitz.passwords.sh set x "PASSWORD B - APP Password" $_temp
|
||||
password=$(sudo cat $_temp)
|
||||
sudo rm $_temp
|
||||
if [ "${password}" == "" ]; then
|
||||
echo "FAIL password B cannot be empty - stopped setup"
|
||||
exit 1
|
||||
fi
|
||||
sudo sed -i '/^passwordB=/d' $SETUPFILE
|
||||
echo "passwordB='${password}'" >> $SETUPFILE
|
||||
dialog --backtitle "RaspiBlitz - Setup" --msgbox "\nThanks - Password B accepted.\n\nUse this password as login for\nadditial Apps & API access." 10 34
|
||||
@ -93,6 +101,10 @@ if [ "${setPasswordC}" == "1" ]; then
|
||||
sudo /home/admin/config.scripts/blitz.passwords.sh set x "PASSWORD C - Lightning Wallet Password" $_temp
|
||||
password=$(sudo cat $_temp)
|
||||
sudo rm $_temp
|
||||
if [ "${password}" == "" ]; then
|
||||
echo "FAIL password C cannot be empty - stopped setup"
|
||||
exit 1
|
||||
fi
|
||||
sudo sed -i '/^passwordC=/d' $SETUPFILE
|
||||
echo "passwordC='${password}'" >> $SETUPFILE
|
||||
dialog --backtitle "RaspiBlitz - Setup" --msgbox "\nThanks - Password C accepted.\n\nAlways use this password to \nunlock your Lightning Wallet." 10 34
|
||||
|
Loading…
x
Reference in New Issue
Block a user