make sure lightning/lnd/cl is coherent

This commit is contained in:
rootzoll 2022-01-30 10:36:24 +01:00
parent 105b33c5d6
commit 5655ee94c4
2 changed files with 8 additions and 1 deletions

View File

@ -58,6 +58,13 @@ if [ "${entryExists}" != "1" ]; then
lightning="lnd"
echo "lightning=${lightning}" >> ${configFile}
fi
# make sure lnd / cl is set if lightning is on
if [ "${lightning}" == "lnd" ] && [ "${lnd}" != "on" ]; then
/home/admin/config.scripts/blitz.conf.sh set lnd on
fi
if [ "${lightning}" == "cl" ] && [ "${cl}" != "on" ]; then
/home/admin/config.scripts/blitz.conf.sh set cl on
fi
# load codeVersion
source /home/admin/_version.info

View File

@ -57,7 +57,7 @@ if [ "${walletLocked}" == "0" ]; then
fi
macaroonsMissing=$(echo "${lndError}" | grep -c "unable to read macaroon")
# if action sis just status
# if action is just status
if [ "${action}" == "status" ]; then
echo "locked=${walletLocked}"
echo "missingMacaroons=${macaroonsMissing}"