wait for syncprogress info

This commit is contained in:
rootzoll
2021-07-16 13:47:06 +02:00
parent 8929a9714e
commit 355600566d
2 changed files with 9 additions and 8 deletions

View File

@@ -582,6 +582,15 @@ if [ ${isMounted} -eq 0 ]; then
# mark provision process done
sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile}
# wait until syncProgress is available (neeed for final dialogs)
while [ "${syncProgress}" == "" ]
do
echo "# Waiting for blockchain sync progress info ..." >> $logFile
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
sed -i "s/^state=.*/state=waitsync/g" ${infoFile}
sleep 2
done
###################################################
# WAIT LOOP: AFTER FRESH SETUP, MIGRATION
# successfull update & recover can skip this

View File

@@ -26,14 +26,6 @@ fi
############################################
# BLOCKCHAIN INFO & OPTIONS
# wait until syncProgress is available
while [ "${syncProgress}" == "" ]
do
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
/home/admin/setup.scripts/eventInfoWait.sh "waitsync" "waitloop" ssh
sleep 2
done
# get fresh data
syncProgressFull=$(echo "${syncProgress}" | cut -d "." -f1)
if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncProgressFull} -lt 75 ]; then