|
@ -11,6 +11,10 @@ if [ ${isMainChain} -gt 0 ];then |
|
|
chain="main" |
|
|
chain="main" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo "network(${network})" |
|
|
|
|
|
echo "chain(${chain})" |
|
|
|
|
|
sleep 1 |
|
|
|
|
|
|
|
|
# CHECK WHAT IS ALREADY WORKING |
|
|
# CHECK WHAT IS ALREADY WORKING |
|
|
# check list from top down - so ./10setupBlitz.sh |
|
|
# check list from top down - so ./10setupBlitz.sh |
|
|
# and re-enters the setup process at the correct spot |
|
|
# and re-enters the setup process at the correct spot |
|
@ -20,6 +24,9 @@ fi |
|
|
lndRunning=$(systemctl status lnd.service 2>/dev/null | grep -c running) |
|
|
lndRunning=$(systemctl status lnd.service 2>/dev/null | grep -c running) |
|
|
if [ ${lndRunning} -eq 1 ]; then |
|
|
if [ ${lndRunning} -eq 1 ]; then |
|
|
|
|
|
|
|
|
|
|
|
echo "LND is running ..." |
|
|
|
|
|
sleep 1 |
|
|
|
|
|
|
|
|
# check if LND is locked |
|
|
# check if LND is locked |
|
|
walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${chain}net/wallet.db 2>/dev/null | grep wallet.db -c) |
|
|
walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${chain}net/wallet.db 2>/dev/null | grep wallet.db -c) |
|
|
locked=0 |
|
|
locked=0 |
|
|