mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
resfresh setup state
This commit is contained in:
@@ -22,7 +22,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 (${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 ' ' )
|
result=$( cat $_temp | tr -dc '[:alnum:]-.' | tr -d ' ' )
|
||||||
sudo rm $_temp
|
sudo rm $_temp
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ source /home/admin/raspiblitz.info
|
|||||||
# this key/value file contains the state during the setup process
|
# this key/value file contains the state during the setup process
|
||||||
SETUPFILE="/var/cache/raspiblitz/temp/raspiblitz.setup"
|
SETUPFILE="/var/cache/raspiblitz/temp/raspiblitz.setup"
|
||||||
|
|
||||||
# init SETUPFILE
|
# init SETUPFILE & temp dir on mem drive
|
||||||
sudo mkdir /var/cache/raspiblitz/temp
|
sudo mkdir /var/cache/raspiblitz/temp
|
||||||
sudo chown admin:admin /var/cache/raspiblitz/temp
|
sudo chown admin:admin /var/cache/raspiblitz/temp
|
||||||
sudo rm $SETUPFILE 2>/dev/null
|
sudo rm $SETUPFILE 2>/dev/null
|
||||||
@@ -16,9 +16,6 @@ echo "# RASPIBLITZ SETUP STATE" > $SETUPFILE
|
|||||||
sudo chown admin:admin $SETUPFILE
|
sudo chown admin:admin $SETUPFILE
|
||||||
sudo chmod 777 $SETUPFILE
|
sudo chmod 777 $SETUPFILE
|
||||||
|
|
||||||
# init temp directory on mem drive
|
|
||||||
|
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Basic Setup (Blockchain & Lightning Impl)
|
# Basic Setup (Blockchain & Lightning Impl)
|
||||||
# (skip if migration was auto-detected)
|
# (skip if migration was auto-detected)
|
||||||
@@ -37,6 +34,9 @@ if [ "${migrationOS}" == "" ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# source setup state fresh - in case manual migration was choosen
|
||||||
|
source $SETUPFILE
|
||||||
|
|
||||||
if [ "${migrationOS}" != "" ]; then
|
if [ "${migrationOS}" != "" ]; then
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
|
|||||||
Reference in New Issue
Block a user