Browse Source

back to calling script

master
Christian Rotzoll 6 years ago
parent
commit
a0ee2241ee
  1. 3
      home.admin/config.scripts/internet.sshtunnel.py

3
home.admin/config.scripts/internet.sshtunnel.py

@ -174,8 +174,7 @@ if sys.argv[1] == "on":
if forwardingLND:
# setting server explicitly on LND if LND port is forwarded
print("Setting fixed address for LND with raspiblitz lndAddress")
#subprocess.call("sudo /home/admin/config.scripts/lnd.setaddress.sh on %s" % (serverdomain), shell=True)
subprocess.call("sudo sed -i \"s/^lndAddress=.*/lndAddress='%s'/g\" /mnt/hdd/raspiblitz.conf" % (serverdomain), shell=True)
subprocess.call("sudo /home/admin/config.scripts/lnd.setaddress.sh on %s" % (serverdomain), shell=True)
else:
print("No need to set fixed address for LND with raspiblitz lndAddress")
file_content = "".join([s for s in file_content.splitlines(True) if s.strip("\r\n")]) + "\n"

Loading…
Cancel
Save