mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 19:50:35 +02:00
mute unlocking echos
This commit is contained in:
@@ -24,7 +24,7 @@ action="$1"
|
|||||||
passwordC="$2"
|
passwordC="$2"
|
||||||
|
|
||||||
# check if wallet is already unlocked
|
# check if wallet is already unlocked
|
||||||
echo "# checking LND wallet ... (can take some time)"
|
# echo "# checking LND wallet ... (can take some time)"
|
||||||
walletLocked=$(sudo -u bitcoin $lncli_alias --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
walletLocked=$(sudo -u bitcoin $lncli_alias --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
||||||
macaroonsMissing=$(sudo -u bitcoin $lncli_alias --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c "unable to read macaroon")
|
macaroonsMissing=$(sudo -u bitcoin $lncli_alias --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c "unable to read macaroon")
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ fi
|
|||||||
|
|
||||||
# if already unlocked all is done
|
# if already unlocked all is done
|
||||||
if [ ${walletLocked} -eq 0 ] && [ ${macaroonsMissing} -eq 0 ]; then
|
if [ ${walletLocked} -eq 0 ] && [ ${macaroonsMissing} -eq 0 ]; then
|
||||||
echo "# OK LND wallet was already unlocked"
|
# echo "# OK LND wallet was already unlocked"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user