Fix bug (replacements[0] should have been replacements[1])

pull/4/head
drunkendog 2023-08-24 18:18:29 +01:00
parent 7f4ddba8bb
commit b6f4f1ab47
1 changed files with 3 additions and 3 deletions

View File

@ -26,9 +26,9 @@ for directory in directories:
if replacement[0] == "#service":
with open(f"{directory}/relaunch-docker.sh", "w") as f:
f.write(f"docker pull $(docker inspect {replacement[0]} | jq -r '.[0].Config.Image')\n")
f.write(f"docker stop {replacement[0]}\n")
f.write(f"docker rm {replacement[0]}\n")
f.write(f"docker pull $(docker inspect {replacement[1]} | jq -r '.[0].Config.Image')\n")
f.write(f"docker stop {replacement[1]}\n")
f.write(f"docker rm {replacement[1]}\n")
f.write(f"sh launch-docker.sh\n")
if glob.glob(f"{directory}/parser.py"):