replace LNTYPE

This commit is contained in:
rootzoll 2021-07-25 01:04:23 +02:00
parent 70ad40f809
commit 59fbc2ac9c

View file

@ -160,9 +160,9 @@ fi
webinterfaceInfo=""
runningRTL=$(systemctl status ${netprefix}${typeprefix}RTL.service 2>/dev/null | grep -c active)
if [ ${runningRTL} -eq 1 ]; then
if [ ${LNTYPE} = "cln" ]; then
if [ "${lightning}" == "cln" ]; then
RTLHTTP=${portprefix}7000
elif [ ${LNTYPE} = "lnd" ];then
elif [ "${lightning}" == "lnd" ];then
RTLHTTP=${portprefix}3000
fi
webinterfaceInfo="Web admin --> ${color_green}http://${local_ip}:${RTLHTTP}"
@ -232,7 +232,7 @@ else
fi
# LIGHTNING NETWORK
if [ ${LNTYPE} = "cln" ]; then
if [ "${lightning}" == "cln" ]; then
ln_getInfo=$($lightningcli_alias getinfo 2>/dev/null)
ln_baseInfo="-"
ln_channelInfo="\n"
@ -343,7 +343,7 @@ if [ ${LNTYPE} = "cln" ]; then
fi
fi
elif [ ${LNTYPE} = "lnd" ];then
elif [ "${lightning}" == "lnd" ];then
ln_baseInfo="-"
ln_channelInfo="\n"
ln_external="\n"
@ -429,9 +429,9 @@ ${color_yellow}
${color_yellow}${ln_publicColor}${ln_external}${color_gray}"
fi
if [ $LNTYPE = "cln" ];then
if [ "${lightning}" == "cln" ];then
LNline="C-LIGHTNING ${color_green}${ln_version} ${ln_baseInfo}"
elif [ $LNTYPE = "lnd" ];then
elif [ "${lightning}" == "lnd" ];then
LNline="LND ${color_green}${ln_version} ${ln_baseInfo}"
fi