|
|
@ -20,6 +20,7 @@ if [ ${bitcoinActive} -eq 0 ]; then |
|
|
|
height=6 |
|
|
|
width=42 |
|
|
|
title="Blockchain Info" |
|
|
|
if [ ${uptime} -gt 300 ]; then |
|
|
|
infoStr=" The ${network}d service is not running.\n Login for more details:" |
|
|
|
if [ "$USER" == "admin" ]; then |
|
|
|
echo "" |
|
|
@ -41,6 +42,12 @@ if [ ${bitcoinActive} -eq 0 ]; then |
|
|
|
echo "" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
else |
|
|
|
infoStr=" The ${network}d service is starting.\n Login for more details:" |
|
|
|
if [ "$USER" == "admin" ]; then |
|
|
|
infoStr=" The ${network}d service is starting.\n Please wait up to 5min ..." |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
elif [ ${lndActive} -eq 0 ]; then |
|
|
|
|
|
|
@ -51,7 +58,8 @@ elif [ ${lndActive} -eq 0 ]; then |
|
|
|
height=5 |
|
|
|
width=42 |
|
|
|
title="Lightning Info" |
|
|
|
infoStr=" The lnd service is not running.\n Login for more details:" |
|
|
|
if [ ${uptime} -gt 300 ]; then |
|
|
|
infoStr=" The LND service is not running.\n Login for more details:" |
|
|
|
if [ "$USER" == "admin" ]; then |
|
|
|
echo "" |
|
|
|
echo "*********************************" |
|
|
@ -72,6 +80,12 @@ elif [ ${lndActive} -eq 0 ]; then |
|
|
|
echo "" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
else |
|
|
|
infoStr=" The LND service is starting.\n Login for more details:" |
|
|
|
if [ "$USER" == "admin" ]; then |
|
|
|
infoStr=" The LND service is starting.\n Please wait up to 5min ..." |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|