mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
replace LNTYPE
This commit is contained in:
parent
70ad40f809
commit
59fbc2ac9c
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue