From 1c2f9b2552096553feae48af5cb9374b111c4515 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 3 Apr 2019 14:40:29 +0100 Subject: [PATCH] fix string insert --- home.admin/config.scripts/internet.sshtunnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/config.scripts/internet.sshtunnel.py b/home.admin/config.scripts/internet.sshtunnel.py index 47b3f23..4924a14 100755 --- a/home.admin/config.scripts/internet.sshtunnel.py +++ b/home.admin/config.scripts/internet.sshtunnel.py @@ -157,7 +157,7 @@ if sys.argv[1] == "on": # make sure serverdomain is set as tls alias 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" % (serverdomain), shell=True) + subprocess.call("sudo sed -i \"s/^tlsextradomain=.*/tlsextradomain=%s/g\" /mnt/hdd/lnd/lnd.conf" % (serverdomain), shell=True) subprocess.call("sudo /home/admin/config.scripts/lnd.newtlscert.sh", shell=True) if forwardingLND: # setting server explicitly on LND if LND port is forwarded