mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-13 06:09:47 +02:00
next try to detect error
This commit is contained in:
parent
8b920904b0
commit
6258dbf0a2
@ -103,7 +103,8 @@ while :
|
||||
# RASPIBLITZ iS FULL SETUP
|
||||
|
||||
# check if bitcoin is ready
|
||||
clierror=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>&1)
|
||||
sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>>error.tmp
|
||||
clierror=`cat error.tmp`
|
||||
if [ ${#clierror} -gt 0 ]; then
|
||||
l1="Waiting for ${network}d to get ready.\n"
|
||||
l1="Can take some time if devcie was off."
|
||||
|
Loading…
x
Reference in New Issue
Block a user