mute unlocking echos

This commit is contained in:
rootzoll
2021-07-15 23:32:27 +02:00
parent 0a17aecff2
commit 33c27630b5

View File

@@ -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