mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
correct command call
This commit is contained in:
parent
ce32ce86e0
commit
ba6b7e1009
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == "-h" or sys.argv[1] == "help":
|
||||||
if sys.argv[1] == "on":
|
if sys.argv[1] == "on":
|
||||||
|
|
||||||
# check if already running -> systemctl is-enabled autossh-tunnel.service
|
# 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":
|
if alreadyRunning == "enabled":
|
||||||
print("already running - run 'internet.sshtunnel.py off' first")
|
print("already running - run 'internet.sshtunnel.py off' first")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue