mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 04:00:34 +02:00
update sync info for no lightning
This commit is contained in:
@@ -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
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user