mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
set passwords in all lightning choices
This commit is contained in:
parent
8e984c58c9
commit
0c9fe9a684
1 changed files with 21 additions and 0 deletions
|
@ -62,6 +62,16 @@ elif [ "${CHOICE}" == "OLD" ]; then
|
|||
enterSEED=1
|
||||
uploadSCB=1
|
||||
|
||||
# clear setup state from all fomer possible choices (previous loop)
|
||||
sudo sed -i '/^setPasswordA=/d' $SETUPFILE
|
||||
sudo sed -i '/^setPasswordB=/d' $SETUPFILE
|
||||
sudo sed -i '/^setPasswordC=/d' $SETUPFILE
|
||||
|
||||
# mark all passwords to be set at the end
|
||||
echo "setPasswordA=1" >> $SETUPFILE
|
||||
echo "setPasswordB=1" >> $SETUPFILE
|
||||
echo "setPasswordC=1" >> $SETUPFILE
|
||||
|
||||
elif [ "${CHOICESUB}" == "ONLYSEED" ]; then
|
||||
|
||||
# let people know about the difference between SEED & SEED+SCB
|
||||
|
@ -78,6 +88,17 @@ or having a complete LND rescue-backup from your old node.
|
|||
else
|
||||
# activate SEED input & SCB upload
|
||||
enterSEED=1
|
||||
|
||||
# clear setup state from all fomer possible choices (previous loop)
|
||||
sudo sed -i '/^setPasswordA=/d' $SETUPFILE
|
||||
sudo sed -i '/^setPasswordB=/d' $SETUPFILE
|
||||
sudo sed -i '/^setPasswordC=/d' $SETUPFILE
|
||||
|
||||
# mark all passwords to be set at the end
|
||||
echo "setPasswordA=1" >> $SETUPFILE
|
||||
echo "setPasswordB=1" >> $SETUPFILE
|
||||
echo "setPasswordC=1" >> $SETUPFILE
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue