mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 09:16:57 +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
|
if [ "${lightning}" == "" ]; then
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# No Lightning
|
# No Lightning (remove lnd from systemd)
|
||||||
sudo sed -i "s/^message=.*/message='Deactivate Lightning'/g" ${infoFile}
|
sudo sed -i "s/^message=.*/message='Deactivate Lightning'/g" ${infoFile}
|
||||||
sudo systemctl disable lnd
|
sudo systemctl disable lnd
|
||||||
|
sudo rm /etc/systemd/system/lnd.service
|
||||||
|
sudo systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${lightning}" == "lnd" ]; then
|
if [ "${lightning}" == "lnd" ]; then
|
||||||
|
@@ -272,6 +272,13 @@ if [ ${lndRunning} -eq 1 ]; then
|
|||||||
|
|
||||||
fi
|
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
|
# touchscreen statistics
|
||||||
if [ "${touchscreen}" == "1" ]; then
|
if [ "${touchscreen}" == "1" ]; then
|
||||||
echo "blitzTUIActive=1"
|
echo "blitzTUIActive=1"
|
||||||
|
@@ -45,7 +45,7 @@ do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# formatting LIGHTNING SCAN PROGRESS
|
# formatting LIGHTNING SCAN PROGRESS
|
||||||
if [ "${scanProgress}" == "" ]; then
|
if [ "${lightning}" != "" ] && [ "${scanProgress}" == "" ]; then
|
||||||
# in case of LND RPC is not ready yet
|
# in case of LND RPC is not ready yet
|
||||||
if [ ${scanTimestamp} -eq -2 ]; then
|
if [ ${scanTimestamp} -eq -2 ]; then
|
||||||
scanProgress="prepare sync"
|
scanProgress="prepare sync"
|
||||||
@@ -63,7 +63,15 @@ do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# setting info string
|
# 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
|
# set admin string
|
||||||
if [ ${lcd} -eq 1 ]; then
|
if [ ${lcd} -eq 1 ]; then
|
||||||
|
Reference in New Issue
Block a user