mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-07-27 13:23:36 +02:00
check also for new wallet locked error message
This commit is contained in:
@@ -23,6 +23,10 @@ passwordC="$2"
|
|||||||
# echo "# checking LND wallet ... (can take some time)"
|
# echo "# checking LND wallet ... (can take some time)"
|
||||||
lndError=$(sudo -u bitcoin lncli --chain=${network} --network=${chain}net getinfo 2>&1)
|
lndError=$(sudo -u bitcoin lncli --chain=${network} --network=${chain}net getinfo 2>&1)
|
||||||
walletLocked=$(echo "${lndError}" | grep -c "Wallet is encrypted")
|
walletLocked=$(echo "${lndError}" | grep -c "Wallet is encrypted")
|
||||||
|
if [ "${walletLocked}" == "0" ]; then
|
||||||
|
# test for new error message
|
||||||
|
walletLocked=$(echo "${lndError}" | grep -c "wallet locked")
|
||||||
|
fi
|
||||||
macaroonsMissing=$(echo "${lndError}" | grep -c "unable to read macaroon")
|
macaroonsMissing=$(echo "${lndError}" | grep -c "unable to read macaroon")
|
||||||
|
|
||||||
# if action sis just status
|
# if action sis just status
|
||||||
|
Reference in New Issue
Block a user