mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-05 14:03:17 +02:00
set passwords in all lightning choices
This commit is contained in:
@@ -62,6 +62,16 @@ elif [ "${CHOICE}" == "OLD" ]; then
|
|||||||
enterSEED=1
|
enterSEED=1
|
||||||
uploadSCB=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
|
elif [ "${CHOICESUB}" == "ONLYSEED" ]; then
|
||||||
|
|
||||||
# let people know about the difference between SEED & SEED+SCB
|
# 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
|
else
|
||||||
# activate SEED input & SCB upload
|
# activate SEED input & SCB upload
|
||||||
enterSEED=1
|
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
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user