mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 09:16:57 +02:00
fix already running detection
This commit is contained in:
@@ -56,10 +56,11 @@ if sys.argv[1] == "on":
|
|||||||
|
|
||||||
# check if already running
|
# check if already running
|
||||||
try:
|
try:
|
||||||
subprocess.call("systemctl is-enabled %s" % (SERVICENAME) ,shell=True, universal_newlines=True)
|
subprocess.call("systemctl is-enabled %s" % (SERVICENAME) ,shell=True, universal_newlines=True)
|
||||||
|
print("already ON - run 'internet.sshtunnel.py off' first")
|
||||||
|
sys.exit(1)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print("already ON - run 'internet.sshtunnel.py off' first")
|
print("*** Installing SSH TUNNEL")
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# check server address
|
# check server address
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
|
Reference in New Issue
Block a user