add nowait ard

This commit is contained in:
vincent 2020-07-14 17:08:51 +02:00
parent a334f6234c
commit fa2a4058b7

View File

@ -16,7 +16,7 @@ services=("syncthing@vincent",
"home-assistant",
"radicale")
containers=("pihole")
containers=("pihole",)
@ -58,10 +58,16 @@ class Container(object):
if __name__ == '__main__':
if sys.argv[0] != "nowait":
wait=True
if len(sys.argv) > 1:
print(sys.argv[1])
if sys.argv[1] == "nowait":
wait=False
if (wait):
time.sleep(60)
for serviceName in services:
serviceObj=Service(serviceName)
if (serviceObj.is_active()):