reduce wait time during setup

This commit is contained in:
rootzoll
2019-02-09 18:32:03 +01:00
parent b3a5fd5a32
commit 886935dc14

View File

@@ -101,7 +101,11 @@ fi #end - when lighting is running
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
if [ ${bitcoinRunning} -eq 0 ]; then
# double check
dialog --pause " Double checking for ${network}d - please wait .." 8 58 120
seconds=120
if [ ${setupStep} -lt 60 ]; then
seconds=10
fi
dialog --pause " Double checking for ${network}d - please wait .." 8 58 ${seconds}
bitcoinRunning=$(${network}-cli getblockchaininfo | grep "initialblockdownload" -c)
else
echo "${network} is running"