fix background blicoin-cli call

This commit is contained in:
Christian Rotzoll
2019-08-09 10:26:11 +02:00
parent c2ea5560d5
commit 78a83b4134

View File

@@ -271,7 +271,7 @@ do
# check if flag exists (got created on 50syncHDD.sh)
flagExists=$(ls /home/admin/selfsync.flag 2>/dev/null | grep -c "selfsync.flag")
if [ ${flagExists} -eq 1 ]; then
finishedIBD=$(${network}-cli getblockchaininfo | grep "initialblockdownload" | grep -c "false")
finishedIBD=$(sudo -u bitcoin ${network}-cli getblockchaininfo --chain=${network} --network=${chain}net | grep "initialblockdownload" | grep -c "false")
if [ ${finishedIBD} -eq 1 ]; then
echo "CHECK FOR END OF IBD --> reduce RAM, check TOR and restart ${network}d"