mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-21 14:04:15 +02:00
fix switch off
This commit is contained in:
parent
8d7ab95739
commit
36ba34983e
@ -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,9 +174,12 @@ fi
|
||||
|
||||
# switch off
|
||||
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||
|
||||
echo "# removing ${CHAIN} lnd service (if active)"
|
||||
|
||||
removeParallelService
|
||||
|
||||
# setting value in raspi blitz config
|
||||
# setting value in raspiblitz config
|
||||
sudo sed -i "s/^${netprefix}lnd=.*/${netprefix}lnd=off/g" /mnt/hdd/raspiblitz.conf
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user