mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fix lnd service template
This commit is contained in:
parent
3c66bfbb62
commit
9a58aa4921
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue