update sync info for no lightning

This commit is contained in:
rootzoll
2021-07-16 12:19:14 +02:00
parent bfe7d2b4d4
commit 4f6818fc17
3 changed files with 21 additions and 5 deletions

View File

@@ -139,10 +139,11 @@ echo "Prepare Lightning (${lightning})" >> ${logFile}
if [ "${lightning}" == "" ]; then
###################################
# No Lightning
# No Lightning (remove lnd from systemd)
sudo sed -i "s/^message=.*/message='Deactivate Lightning'/g" ${infoFile}
sudo systemctl disable lnd
sudo rm /etc/systemd/system/lnd.service
sudo systemctl daemon-reload
fi
if [ "${lightning}" == "lnd" ]; then

View File

@@ -272,6 +272,13 @@ if [ ${lndRunning} -eq 1 ]; then
fi
# is CLN running
clnRunning=$(systemctl status ${netprefix}cln.service 2>/dev/null | grep -c running)
echo "clnActive=${clnRunning}"
if [ ${clnRunning} -eq 1 ]; then
echo "# TODO: cln status statistics"
fi
# touchscreen statistics
if [ "${touchscreen}" == "1" ]; then
echo "blitzTUIActive=1"

View File

@@ -45,7 +45,7 @@ do
fi
# formatting LIGHTNING SCAN PROGRESS
if [ "${scanProgress}" == "" ]; then
if [ "${lightning}" != "" ] && [ "${scanProgress}" == "" ]; then
# in case of LND RPC is not ready yet
if [ ${scanTimestamp} -eq -2 ]; then
scanProgress="prepare sync"
@@ -63,8 +63,16 @@ do
fi
# setting info string
infoStr=" Blockchain Progress : ${syncProgress}\n Lightning Progress : ${scanProgress}\n ${actionString}"
infoStr=" Blockchain Progress : ${syncProgress}\n"
if [ "${lightning}" != "" ]; then
# if lightning is active
infoStr="${infoStr} Lightning Progress : ${scanProgress}\n ${actionString}"
else
# if lightning is deactivated
infoStr="${infoStr} Lightning deactivated"
fi
# set admin string
if [ ${lcd} -eq 1 ]; then
adminStr="ssh admin@${localip} -> Password A"