mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 06:39:24 +02:00
make sure lightning/lnd/cl is coherent
This commit is contained in:
parent
105b33c5d6
commit
5655ee94c4
@ -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
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user