Browse Source

double chack chain network is running

#146
rootzoll 7 years ago
parent
commit
36fd810685
  1. 4
      home.admin/10setupBlitz.sh

4
home.admin/10setupBlitz.sh

@ -89,6 +89,10 @@ fi
# check if bitcoin is running
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
if [ ${bitcoinRunning} -eq 0 ]; then
# double check
bitcoinRunning=$(${network}-cli getblockchaininfo | grep "initialblockdownload" -c)
fi
if [ ${bitcoinRunning} -eq 1 ]; then
echo "OK - ${network}d is running"
echo "Next step run Lightning"

Loading…
Cancel
Save