From 9a58aa492101addd04604b8a278b7e132fa8ea2f Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Fri, 12 Apr 2019 02:42:49 +0100 Subject: [PATCH] fix lnd service template --- home.admin/assets/lnd.service | 2 +- home.admin/config.scripts/internet.tor.sh | 2 +- home.admin/config.scripts/lnd.autonat.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home.admin/assets/lnd.service b/home.admin/assets/lnd.service index 5d44255..dfb84d8 100644 --- a/home.admin/assets/lnd.service +++ b/home.admin/assets/lnd.service @@ -10,7 +10,7 @@ After=bitcoind.service [Service] EnvironmentFile=/mnt/hdd/raspiblitz.conf -ExecStart=/usr/local/bin/lnd --externalip=${publicIP}:{lndPort} +ExecStart=/usr/local/bin/lnd --externalip=${publicIP}:${lndPort} PIDFile=/home/bitcoin/.lnd/lnd.pid User=bitcoin Group=bitcoin diff --git a/home.admin/config.scripts/internet.tor.sh b/home.admin/config.scripts/internet.tor.sh index 94a5f1a..9dbdbb7 100755 --- a/home.admin/config.scripts/internet.tor.sh +++ b/home.admin/config.scripts/internet.tor.sh @@ -245,7 +245,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then sudo systemctl disable lnd echo "editing /etc/systemd/system/lnd.service" - sudo sed -i "s/^ExecStart=\/usr\/local\/bin\/lnd.*/ExecStart=\/usr\/local\/bin\/lnd --externalip=\${publicIP}/g" /etc/systemd/system/lnd.service + sudo sed -i "s/^ExecStart=\/usr\/local\/bin\/lnd.*/ExecStart=\/usr\/local\/bin\/lnd --externalip=\${publicIP}:\${lndPort}/g" /etc/systemd/system/lnd.service sudo systemctl enable lnd echo "OK" diff --git a/home.admin/config.scripts/lnd.autonat.sh b/home.admin/config.scripts/lnd.autonat.sh index f87eae1..640daf6 100644 --- a/home.admin/config.scripts/lnd.autonat.sh +++ b/home.admin/config.scripts/lnd.autonat.sh @@ -67,7 +67,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then sudo sed -i "s/^nat=.*/nat=false/g" /mnt/hdd/lnd/lnd.conf # editing lnd service (adding the static publicip) echo "editing /etc/systemd/system/lnd.service" - sudo sed -i "s/^ExecStart=\/usr\/local\/bin\/lnd.*/ExecStart=\/usr\/local\/bin\/lnd --externalip=\${publicIP}/g" /etc/systemd/system/lnd.service + sudo sed -i "s/^ExecStart=\/usr\/local\/bin\/lnd.*/ExecStart=\/usr\/local\/bin\/lnd --externalip=\${publicIP}:\${lndPort}\/g" /etc/systemd/system/lnd.service # edit raspi blitz config echo "editing /mnt/hdd/raspiblitz.conf" sudo sed -i "s/^autoNatDiscovery=.*/autoNatDiscovery=off/g" /mnt/hdd/raspiblitz.conf