mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 12:36:27 +02:00
fix grep
This commit is contained in:
@@ -55,7 +55,7 @@ if sys.argv[1] == "restore":
|
||||
if sys.argv[1] == "on":
|
||||
|
||||
# check if already running
|
||||
isRunning = subprocess.getoutput("sudo systemctl --no-pager | grep 'autossh-tunnel' -c %s" % (SERVICENAME))
|
||||
isRunning = subprocess.getoutput("sudo systemctl --no-pager | grep '%s' -c" % (SERVICENAME))
|
||||
print(isRunning)
|
||||
if int(isRunning) > 1:
|
||||
print("already ON - run 'internet.sshtunnel.py off' first")
|
||||
|
Reference in New Issue
Block a user