flag resync

This commit is contained in:
Christian Rotzoll 2019-06-30 22:47:47 +02:00
parent b65182a3ce
commit 714e5bcd65
2 changed files with 5 additions and 7 deletions

View file

@ -178,10 +178,6 @@ waitUntilChainNetworkIsReady()
sleep 3 sleep 3
else else
echo "RE-SYNC is running" echo "RE-SYNC is running"
/home/admin/80scanLND.sh
sleep 10
/home/admin/00raspiblitz.sh
exit 0;
fi fi
fi fi
fi fi

View file

@ -57,15 +57,17 @@ if [ "$network" = "bitcoin" ]; then
fi fi
echo "*** Activating Blockain Sync ***" echo "*** Activating Blockain Sync ***"
sudo mkdir /mnt/hdd/${network} 2>/dev/null sudo mkdir /mnt/hdd/${network} 2>/dev/null
sudo /home/admin/XXcleanHDD.sh -blockchain -force sudo /home/admin/XXcleanHDD.sh -blockchain -force
echo "OK - sync is activated"
if [ "${setupStep}" = "100" ]; then
# set so that 10raspiblitz.sh has a flag to see that resync is running # set so that 10raspiblitz.sh has a flag to see that resync is running
sudo sed -i "s/^state=.*/state=resync/g" /home/admin/raspiblitz.info sudo sed -i "s/^state=.*/state=resync/g" /home/admin/raspiblitz.info
echo "OK - sync is activated"
if [ "${setupStep}" = "100" ]; then
# start servives # start servives
sudo systemctl start bitcoind sudo systemctl start bitcoind
sudo systemctl start lnd sudo systemctl start lnd