Merge pull request 'fix' (#40) from master into dev
Reviewed-on: https://gitea.sprinthub.ru/self/certupdater/pulls/40
This commit was merged in pull request #40.
This commit is contained in:
5
main.py
5
main.py
@@ -87,7 +87,8 @@ while True:
|
||||
else:
|
||||
container_id_run = call(f"echo $(docker ps -q -f name=infra_nginx)").out
|
||||
|
||||
restart = call(f"docker exec {container_id_run} python3 prepare.py && nginx -s reload")
|
||||
print(restart.out + restart.err)
|
||||
restart = call(f"docker exec {container_id_run} python3 prepare.py")
|
||||
restart2 = call(f"docker exec {container_id_run} nginx -s reload")
|
||||
print(restart.out, restart.err, restart2.out, restart2.err)
|
||||
|
||||
time.sleep(30)
|
||||
|
||||
Reference in New Issue
Block a user