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