mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 11:37:19 +02:00
patch kickstart provision
This commit is contained in:
@@ -449,27 +449,27 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
echo "Refreshing links between directories/drives .." >> $logFile
|
echo "Refreshing links between directories/drives .." >> $logFile
|
||||||
sudo /home/admin/config.scripts/blitz.datadrive.sh link
|
sudo /home/admin/config.scripts/blitz.datadrive.sh link
|
||||||
|
|
||||||
|
# copy over the raspiblitz.conf created from setup to HDD
|
||||||
|
sudo cp /var/cache/raspiblitz/temp/raspiblitz.conf /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
# kick-off provision process
|
# kick-off provision process
|
||||||
sed -i "s/^state=.*/state=provision/g" ${infoFile}
|
sed -i "s/^state=.*/state=provision/g" ${infoFile}
|
||||||
sed -i "s/^message=.*/message='Starting Provision'/g" ${infoFile}
|
sed -i "s/^message=.*/message='Starting Provision'/g" ${infoFile}
|
||||||
#sed -i "s/^chain=.*/chain=${chain}/g" ${infoFile}
|
#sed -i "s/^chain=.*/chain=${chain}/g" ${infoFile}
|
||||||
#sed -i "s/^network=.*/network=${network}/g" ${infoFile}
|
#sed -i "s/^network=.*/network=${network}/g" ${infoFile}
|
||||||
|
|
||||||
|
# errors from this process will be refelcted ins state / message of raspiblitz.info
|
||||||
echo "Calling Data Migration for possible updates .." >> $logFile
|
echo "Calling Data Migration for possible updates .." >> $logFile
|
||||||
sudo /home/admin/_bootstrap.update.sh
|
sudo /home/admin/_bootstrap.update.sh
|
||||||
echo "Calling Provisioning .." >> $logFile
|
echo "Calling Provisioning .." >> $logFile
|
||||||
sudo /home/admin/_bootstrap.provision.sh
|
sudo /home/admin/_bootstrap.provision.sh
|
||||||
sed -i "s/^state=.*/state=waitfinal/g" ${infoFile}
|
|
||||||
sed -i "s/^message=.*/message='Done Provision'/g" ${infoFile}
|
|
||||||
|
|
||||||
# PROCESS raspiblitz.setup
|
|
||||||
echo "TODO: After Provision Handling .." >> $logFile
|
|
||||||
|
|
||||||
###################################################
|
###################################################
|
||||||
# WAIT LOOP: AFTER FRESH SETUP, MIFGRATION OR ERROR
|
# WAIT LOOP: AFTER FRESH SETUP, MIFGRATION OR ERROR
|
||||||
# successfull update & recover can skip this
|
# successfull update & recover can skip this
|
||||||
###################################################
|
###################################################
|
||||||
|
|
||||||
until [ "${state}" == "waitfinal" ]
|
until [ "${state}" != "ready" ]
|
||||||
do
|
do
|
||||||
|
|
||||||
# TODO: DETECT WHEN USER SETUP IS DONE
|
# TODO: DETECT WHEN USER SETUP IS DONE
|
||||||
|
@@ -251,7 +251,7 @@ if [ "${setupPhase}" == "setup" ]; then
|
|||||||
source $SETUPFILE
|
source $SETUPFILE
|
||||||
|
|
||||||
# prepare config file
|
# prepare config file
|
||||||
CONFIGFILE="/mnt/hdd/raspiblitz.conf"
|
CONFIGFILE="/var/cache/raspiblitz/temp/raspiblitz.conf"
|
||||||
sudo rm $CONFIGFILE 2>/dev/null
|
sudo rm $CONFIGFILE 2>/dev/null
|
||||||
sudo chown admin:admin $CONFIGFILE
|
sudo chown admin:admin $CONFIGFILE
|
||||||
sudo chmod 777 $CONFIGFILE
|
sudo chmod 777 $CONFIGFILE
|
||||||
|
Reference in New Issue
Block a user