Compare commits
2 Commits
560d21c9fe
...
d0c26f15e2
Author | SHA1 | Date | |
---|---|---|---|
d0c26f15e2 | |||
![]() |
4baf1c94fa |
4
main.py
4
main.py
@ -86,10 +86,10 @@ while True:
|
|||||||
container_id_run = call("echo $(docker ps -q -f name=infra-development_nginx)")
|
container_id_run = call("echo $(docker ps -q -f name=infra-development_nginx)")
|
||||||
else:
|
else:
|
||||||
container_id_run = call("echo $(docker ps -q -f name=infra_nginx)")
|
container_id_run = call("echo $(docker ps -q -f name=infra_nginx)")
|
||||||
|
|
||||||
print(container_id_run.code, container_id_run.out, container_id_run.err)
|
print(container_id_run.code, container_id_run.out, container_id_run.err)
|
||||||
|
|
||||||
restart = call(f"docker exec {container_id_run} ./refre.sh")
|
restart = call(f"docker exec {container_id_run.out} ./refre.sh")
|
||||||
print(restart.code, restart.out, restart.err)
|
print(restart.code, restart.out, restart.err)
|
||||||
|
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
Loading…
Reference in New Issue
Block a user