From 4baf1c94fa3b4c133d6a9dcf97ac24bb6158dfb7 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Tue, 10 Jun 2025 01:48:47 +0300 Subject: [PATCH] fix --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 57e12d4..90a4aee 100644 --- a/main.py +++ b/main.py @@ -86,10 +86,10 @@ while True: container_id_run = call("echo $(docker ps -q -f name=infra-development_nginx)") else: 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) - 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) time.sleep(30) -- 2.45.2