Browse Source

correct command call

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

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

@ -16,7 +16,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == "-h" or sys.argv[1] == "help":
if sys.argv[1] == "on":
# check if already running -> systemctl is-enabled autossh-tunnel.service
alreadyRunning = subprocess.check_output(['systemctl','is-enabled','autossh-tunnel.service'],shell=True)
alreadyRunning = subprocess.check_output('systemctl is-enabled autossh-tunnel.service' ,shell=True)
print(alreadyRunning)
if alreadyRunning == "enabled":
print("already running - run 'internet.sshtunnel.py off' first")
sys.exit(1)

Loading…
Cancel
Save