add nowait ard
This commit is contained in:
parent
a334f6234c
commit
fa2a4058b7
@ -16,7 +16,7 @@ services=("syncthing@vincent",
|
||||
"home-assistant",
|
||||
"radicale")
|
||||
|
||||
containers=("pihole")
|
||||
containers=("pihole",)
|
||||
|
||||
|
||||
|
||||
@ -58,10 +58,16 @@ class Container(object):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
wait=True
|
||||
if len(sys.argv) > 1:
|
||||
print(sys.argv[1])
|
||||
if sys.argv[1] == "nowait":
|
||||
wait=False
|
||||
|
||||
if sys.argv[0] != "nowait":
|
||||
if (wait):
|
||||
time.sleep(60)
|
||||
|
||||
|
||||
for serviceName in services:
|
||||
serviceObj=Service(serviceName)
|
||||
if (serviceObj.is_active()):
|
||||
|
Loading…
Reference in New Issue
Block a user