From 9642071b41b86b61f23b293820305b2fce7bd972 Mon Sep 17 00:00:00 2001 From: quackerd Date: Tue, 6 Dec 2022 03:57:34 +0000 Subject: [PATCH] Update 'docker_update.py' --- docker_update.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker_update.py b/docker_update.py index f59f465..b385354 100644 --- a/docker_update.py +++ b/docker_update.py @@ -21,11 +21,11 @@ for line in lines: if s.startswith("#"): continue fullpath = os.path.join(path, s) - if os.path.isdir(fullpath) and ("docker-compose.yml" in os.listdir(fullpath)): - fullpath = os.path.join(fullpath, "docker-compose.yml") + if os.path.isdir(fullpath) and ("docker compose.yml" in os.listdir(fullpath)): + fullpath = os.path.join(fullpath, "docker compose.yml") print("========= Processing " + fullpath + " =========") - print(subprocess.check_output("docker-compose -f " + fullpath + " pull", shell=True, stderr=subprocess.STDOUT).decode()) - print(subprocess.check_output("docker-compose -f " + fullpath + " up -d", shell=True, stderr=subprocess.STDOUT).decode()) + print(subprocess.check_output("docker compose -f " + fullpath + " pull", shell=True, stderr=subprocess.STDOUT).decode()) + print(subprocess.check_output("docker compose -f " + fullpath + " up -d", shell=True, stderr=subprocess.STDOUT).decode()) else: print("========= Skipping " + fullpath + ": invalid dir or docker-compos.yml =========")