add nowait ard
This commit is contained in:
parent
a334f6234c
commit
fa2a4058b7
@ -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()):
|
||||||
|
Loading…
Reference in New Issue
Block a user