mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 04:37:19 +02:00
make sure info is uptodate
This commit is contained in:
@@ -492,10 +492,17 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
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}
|
||||||
|
|
||||||
|
# load setup data
|
||||||
|
source ${setupFile} 2>$logFile
|
||||||
|
|
||||||
|
# make sure basic info id in raspiblitz.info
|
||||||
|
sudo sed -i "s/^network=.*/network=${network}/g" ${infoFile}
|
||||||
|
sudo sed -i "s/^chain=.*/chain=${chain}/g" ${infoFile}
|
||||||
|
sudo sed -i "s/^lightning=.*/lightning=${lightning}/g" ${infoFile}
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# Set Password A (in all cases)
|
# Set Password A (in all cases)
|
||||||
|
|
||||||
source ${setupFile} 2>$logFile
|
|
||||||
if [ "${passwordA}" == "" ]; then
|
if [ "${passwordA}" == "" ]; then
|
||||||
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
||||||
sed -i "s/^message=.*/message='config: missing passwordA'/g" ${infoFile}
|
sed -i "s/^message=.*/message='config: missing passwordA'/g" ${infoFile}
|
||||||
|
@@ -678,11 +678,6 @@ if [ ${confExists} -eq 0 ]; then
|
|||||||
sudo chown bitcoin:bitcoin /mnt/hdd/bitcoin/bitcoin.conf
|
sudo chown bitcoin:bitcoin /mnt/hdd/bitcoin/bitcoin.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure basic info id in raspiblitz.info
|
|
||||||
sudo sed -i "s/^network=.*/network=${network}/g" ${infoFile}
|
|
||||||
sudo sed -i "s/^chain=.*/chain=${chain}/g" ${infoFile}
|
|
||||||
sudo sed -i "s/^lightning=.*/lightning=${lightning}/g" ${infoFile}
|
|
||||||
|
|
||||||
# singal setup done
|
# singal setup done
|
||||||
sudo sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
sudo sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
||||||
|
|
||||||
|
@@ -85,5 +85,6 @@ fi
|
|||||||
# write results to setup sate
|
# write results to setup sate
|
||||||
echo "lightning=${lightning}" >> $SETUPFILE
|
echo "lightning=${lightning}" >> $SETUPFILE
|
||||||
echo "network=${network}" >> $SETUPFILE
|
echo "network=${network}" >> $SETUPFILE
|
||||||
|
echo "chain=main" >> $SETUPFILE
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Reference in New Issue
Block a user