mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
resfresh setup state
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
###############################################
|
||||
|
Reference in New Issue
Block a user