resfresh setup state

This commit is contained in:
rootzoll
2021-05-03 17:16:28 +02:00
parent c568ce3b0e
commit 8db8ab7d76
2 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ while [ ${#result} -eq 0 ]
do
l1="Please enter the name of your new RaspiBlitz:\n"
l2="one word, keep characters basic & not too long"
dialog --backtitle "RaspiBlitz - Setup (${network}/${chain})" --inputbox "$l1$l2" 11 52 2>$_temp
dialog --backtitle "RaspiBlitz - Setup" --inputbox "$l1$l2" 11 52 2>$_temp
result=$( cat $_temp | tr -dc '[:alnum:]-.' | tr -d ' ' )
sudo rm $_temp
done

View File

@@ -8,7 +8,7 @@ source /home/admin/raspiblitz.info
# this key/value file contains the state during the setup process
SETUPFILE="/var/cache/raspiblitz/temp/raspiblitz.setup"
# init SETUPFILE
# init SETUPFILE & temp dir on mem drive
sudo mkdir /var/cache/raspiblitz/temp
sudo chown admin:admin /var/cache/raspiblitz/temp
sudo rm $SETUPFILE 2>/dev/null
@@ -16,9 +16,6 @@ echo "# RASPIBLITZ SETUP STATE" > $SETUPFILE
sudo chown admin:admin $SETUPFILE
sudo chmod 777 $SETUPFILE
# init temp directory on mem drive
############################################
# Basic Setup (Blockchain & Lightning Impl)
# (skip if migration was auto-detected)
@@ -37,6 +34,9 @@ if [ "${migrationOS}" == "" ]; then
fi
# source setup state fresh - in case manual migration was choosen
source $SETUPFILE
if [ "${migrationOS}" != "" ]; then
###############################################