mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
show more info in dialog
This commit is contained in:
@@ -10,7 +10,7 @@ while [ ${#result} -eq 0 ]
|
|||||||
do
|
do
|
||||||
l1="Please enter the name of your new RaspiBlitz:\n"
|
l1="Please enter the name of your new RaspiBlitz:\n"
|
||||||
l2="one word, keep characters basic & not too long"
|
l2="one word, keep characters basic & not too long"
|
||||||
dialog --backtitle "RaspiBlitz - Setup" --inputbox "$l1$l2" 11 52 2>$_temp
|
dialog --backtitle "RaspiBlitz - Setup (${network}/${chain})" --inputbox "$l1$l2" 11 52 2>$_temp
|
||||||
result=$( cat $_temp | tr -dc '[:alnum:]-.' | tr -d ' ' )
|
result=$( cat $_temp | tr -dc '[:alnum:]-.' | tr -d ' ' )
|
||||||
shred $_temp
|
shred $_temp
|
||||||
done
|
done
|
||||||
@@ -35,7 +35,7 @@ result=""
|
|||||||
while [ ${passwordValid} -eq 0 ]
|
while [ ${passwordValid} -eq 0 ]
|
||||||
do
|
do
|
||||||
# show password info dialog
|
# show password info dialog
|
||||||
dialog --backtitle "RaspiBlitz - Setup" --msgbox "RaspiBlitz uses 4 different passwords.
|
dialog --backtitle "RaspiBlitz - Setup (${network}/${chain})" --msgbox "RaspiBlitz uses 4 different passwords.
|
||||||
Referenced as password A, B, C and D.
|
Referenced as password A, B, C and D.
|
||||||
|
|
||||||
A) Master User Password
|
A) Master User Password
|
||||||
@@ -49,7 +49,7 @@ Write them down & store them in a safe place.
|
|||||||
" 15 52
|
" 15 52
|
||||||
|
|
||||||
# ask user for new password A
|
# ask user for new password A
|
||||||
dialog --backtitle "RaspiBlitz - Setup"\
|
dialog --backtitle "RaspiBlitz - Setup (${network}/${chain})"\
|
||||||
--inputbox "Please enter your Master/Admin Password A:\n!!! This is new password to login per SSH !!!" 10 52 2>$_temp
|
--inputbox "Please enter your Master/Admin Password A:\n!!! This is new password to login per SSH !!!" 10 52 2>$_temp
|
||||||
|
|
||||||
# get user input
|
# get user input
|
||||||
@@ -78,7 +78,7 @@ Write them down & store them in a safe place.
|
|||||||
|
|
||||||
# repeat until user input is nit length 0
|
# repeat until user input is nit length 0
|
||||||
result=""
|
result=""
|
||||||
dialog --backtitle "RaspiBlitz - Setup"\
|
dialog --backtitle "RaspiBlitz - Setup (${network}/${chain})"\
|
||||||
--inputbox "Enter your RPC Password B:" 9 52 2>$_temp
|
--inputbox "Enter your RPC Password B:" 9 52 2>$_temp
|
||||||
result=$( cat $_temp )
|
result=$( cat $_temp )
|
||||||
shred $_temp
|
shred $_temp
|
||||||
@@ -97,7 +97,7 @@ Write them down & store them in a safe place.
|
|||||||
sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${result}/g" /home/admin/assets/lnd.${network}.conf
|
sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${result}/g" /home/admin/assets/lnd.${network}.conf
|
||||||
|
|
||||||
# success info dialog
|
# success info dialog
|
||||||
dialog --backtitle "RaspiBlitz - SetUP" --msgbox "OK - RPC password changed to '$result'\n\nNow starting the Setup of your RaspiBlitz." 7 52
|
dialog --backtitle "RaspiBlitz - Setup (${network}/${chain})" --msgbox "OK - RPC password changed to '$result'\n\nNow starting the Setup of your RaspiBlitz." 7 52
|
||||||
clear
|
clear
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user