From 8bfb11b63ecff696a711616cc06b993cfe4042ea Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 2 Apr 2019 01:25:36 +0100 Subject: [PATCH] string replacement --- 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 d2acc0a..47eceb4 100755 --- a/home.admin/config.scripts/internet.sshtunnel.py +++ b/home.admin/config.scripts/internet.sshtunnel.py @@ -39,7 +39,7 @@ WantedBy=multi-user.target if sys.argv[1] == "on": # check if already running - already_running = subprocess.check_output(f"systemctl is-enabled {SERVICENAME}" ,shell=True, universal_newlines=True) + already_running = subprocess.check_output("systemctl is-enabled %s" % (SERVICENAME) ,shell=True, universal_newlines=True) if str(already_running).count("enabled") > 0: print("already ON - run 'internet.sshtunnel.py off' first") sys.exit(1)