mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +02:00
check bitcoin running
This commit is contained in:
@@ -124,7 +124,7 @@ loopcount=0
|
|||||||
while [ ${bitcoinRunning} -eq 0 ]
|
while [ ${bitcoinRunning} -eq 0 ]
|
||||||
do
|
do
|
||||||
>&2 echo "# (${loopcount}/200) checking if ${network}d is running ... " >> ${logFile}
|
>&2 echo "# (${loopcount}/200) checking if ${network}d is running ... " >> ${logFile}
|
||||||
bitcoinRunning=$(${network}-cli getblockchaininfo 2>/dev/null | grep "initialblockdownload" -c)
|
bitcoinRunning=$(sudo -u bitcoin ${network}-cli getblockchaininfo 2>/dev/null | grep "initialblockdownload" -c)
|
||||||
sleep 2
|
sleep 2
|
||||||
sync
|
sync
|
||||||
loopcount=$(($loopcount +1))
|
loopcount=$(($loopcount +1))
|
||||||
|
Reference in New Issue
Block a user