mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 15:31:37 +00:00
Fix issue parsing lncli output
This commit is contained in:
parent
1f79cd0b47
commit
0be0181ed8
|
@ -9,11 +9,11 @@ fi
|
||||||
|
|
||||||
# Wait until lnd is synced
|
# Wait until lnd is synced
|
||||||
echo "Checking if LND is synced..."
|
echo "Checking if LND is synced..."
|
||||||
lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain": true'
|
lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain":\s*true'
|
||||||
while [ $? -ne 0 ]; do
|
while [ $? -ne 0 ]; do
|
||||||
echo "LND not synced, sleeping for 60 seconds..."
|
echo "LND not synced, sleeping for 60 seconds..."
|
||||||
/bin/sleep 60s
|
/bin/sleep 60s
|
||||||
lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain": true'
|
lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain":\s*true'
|
||||||
done
|
done
|
||||||
echo "LND is ready."
|
echo "LND is ready."
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user