mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-11 05:13:13 +02:00
#236 added datadir to cli calls
This commit is contained in:
@@ -9,7 +9,7 @@ echo "*** Checking ${network} ***"
|
|||||||
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
|
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
|
||||||
if [ ${bitcoinRunning} -eq 0 ]; then
|
if [ ${bitcoinRunning} -eq 0 ]; then
|
||||||
#doublecheck
|
#doublecheck
|
||||||
bitcoinRunning=$(${network}-cli getblockchaininfo | grep -c verificationprogress)
|
bitcoinRunning=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | grep -c verificationprogress)
|
||||||
fi
|
fi
|
||||||
if [ ${bitcoinRunning} -eq 0 ]; then
|
if [ ${bitcoinRunning} -eq 0 ]; then
|
||||||
# HDD is not available yet
|
# HDD is not available yet
|
||||||
@@ -27,7 +27,7 @@ echo "*** Wait until ${network}d is ready ..."
|
|||||||
while [ ${chainIsReady} -eq 0 ]
|
while [ ${chainIsReady} -eq 0 ]
|
||||||
do
|
do
|
||||||
loopCount=$(($loopCount +1))
|
loopCount=$(($loopCount +1))
|
||||||
result=$(${network}-cli getblockchaininfo 2>error.out)
|
result=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>error.out)
|
||||||
error=`cat error.out`
|
error=`cat error.out`
|
||||||
rm error.out
|
rm error.out
|
||||||
if [ ${#error} -gt 0 ]; then
|
if [ ${#error} -gt 0 ]; then
|
||||||
|
Reference in New Issue
Block a user