mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
fix switch off
This commit is contained in:
@@ -41,7 +41,7 @@ elif [ ${CHAIN} = mainnet ];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
function removeParallelService() {
|
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\
|
sudo -u bitcoin /usr/local/bin/lncli\
|
||||||
--rpcserver localhost:1${rpcportmod}009 stop
|
--rpcserver localhost:1${rpcportmod}009 stop
|
||||||
sudo systemctl stop ${netprefix}lnd
|
sudo systemctl stop ${netprefix}lnd
|
||||||
@@ -174,9 +174,12 @@ fi
|
|||||||
|
|
||||||
# switch off
|
# switch off
|
||||||
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||||
|
|
||||||
|
echo "# removing ${CHAIN} lnd service (if active)"
|
||||||
|
|
||||||
removeParallelService
|
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
|
sudo sed -i "s/^${netprefix}lnd=.*/${netprefix}lnd=off/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user