Browse Source

fix invalid char

sshtunnel
Christian Rotzoll 6 years ago
parent
commit
05e7af25bd
  1. 2
      home.admin/config.scripts/internet.sshtunnel.py

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

@ -157,7 +157,7 @@ if sys.argv[1] == "on":
# make sure serverdomain is set as tls alias # make sure serverdomain is set as tls alias
print("Setting server as tls alias and generating new certs") print("Setting server as tls alias and generating new certs")
subprocess.call("sudo sed -i \"s/^#tlsextradomain=.*/tlsextradomain=/g\" /mnt/hdd/lnd/lnd.conf", shell=True) subprocess.call("sudo sed -i \"s/^#tlsextradomain=.*/tlsextradomain=/g\" /mnt/hdd/lnd/lnd.conf", shell=True)
subprocess.call("sudo sed -i \"s/^tlsextradomain=.*/tlsextradomain=%$/g\" /mnt/hdd/lnd/lnd.conf" % (serverdomain), shell=True) subprocess.call("sudo sed -i \"s/^tlsextradomain=.*/tlsextradomain=%/g\" /mnt/hdd/lnd/lnd.conf" % (serverdomain), shell=True)
subprocess.call("sudo /home/admin/config.scripts/lnd.newtlscert.sh", shell=True) subprocess.call("sudo /home/admin/config.scripts/lnd.newtlscert.sh", shell=True)
if forwardingLND: if forwardingLND:
# setting server explicitly on LND if LND port is forwarded # setting server explicitly on LND if LND port is forwarded

Loading…
Cancel
Save