mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 11:40:50 +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"
|
lightning="lnd"
|
||||||
echo "lightning=${lightning}" >> ${configFile}
|
echo "lightning=${lightning}" >> ${configFile}
|
||||||
fi
|
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
|
# load codeVersion
|
||||||
source /home/admin/_version.info
|
source /home/admin/_version.info
|
||||||
|
@ -57,7 +57,7 @@ if [ "${walletLocked}" == "0" ]; then
|
|||||||
fi
|
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 is just status
|
||||||
if [ "${action}" == "status" ]; then
|
if [ "${action}" == "status" ]; then
|
||||||
echo "locked=${walletLocked}"
|
echo "locked=${walletLocked}"
|
||||||
echo "missingMacaroons=${macaroonsMissing}"
|
echo "missingMacaroons=${macaroonsMissing}"
|
||||||
|
Loading…
Reference in New Issue
Block a user