fix switch off

This commit is contained in:
rootzoll
2021-08-28 18:57:49 +02:00
parent 8d7ab95739
commit 36ba34983e

View File

@@ -41,7 +41,7 @@ elif [ ${CHAIN} = mainnet ];then
fi
function removeParallelService() {
if [ -f "/etc/systemd/system/${netprefix}bitcoind.service" ];then
if [ -f "/etc/systemd/system/${netprefix}lnd.service" ];then
sudo -u bitcoin /usr/local/bin/lncli\
--rpcserver localhost:1${rpcportmod}009 stop
sudo systemctl stop ${netprefix}lnd
@@ -174,6 +174,9 @@ fi
# switch off
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
echo "# removing ${CHAIN} lnd service (if active)"
removeParallelService
# setting value in raspiblitz config