From 7a207ba742ecadb8e9b4a5d683935843d3ac33ba Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 27 Sep 2024 16:31:58 -0700 Subject: [PATCH] Fix docker-compose-updater dependency Signed-off-by: Tommy --- x86-QEMU-Docker.ign | 2 +- x86-QEMU-Docker.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x86-QEMU-Docker.ign b/x86-QEMU-Docker.ign index 5b5990c..4732e51 100644 --- a/x86-QEMU-Docker.ign +++ b/x86-QEMU-Docker.ign @@ -234,7 +234,7 @@ "name": "gvisor-updater.service" }, { - "contents": "[Unit]\nDescription=Docker Compose Updater for /srv/%I\nAfter=network-online.target\nAfter=docker.service\nRequires=docker.service\n\n[Service]\nType=oneshot\nUser=root\nGroup=root\nWorkingDirectory=/srv/%i\nExecStart=/usr/bin/docker image prune -f -a --filter 'until=240h'\n#ExecStart=/usr/bin/git pull\nExecStart=/usr/bin/docker compose pull\nExecStart=/usr/bin/docker compose up -d\n", + "contents": "[Unit]\nDescription=Docker Compose Updater for /srv/%I\nRequires=network-online.target\nRequisite=docker.service\nAfter=network-online.target\nAfter=docker.service\n\n[Service]\nType=oneshot\nUser=root\nGroup=root\nWorkingDirectory=/srv/%i\nExecStart=/usr/bin/docker image prune -f -a --filter 'until=240h'\n#ExecStart=/usr/bin/git pull\nExecStart=/usr/bin/docker compose pull\nExecStart=/usr/bin/docker compose up -d\n", "enabled": false, "name": "docker-compose-updater@.service" }, diff --git a/x86-QEMU-Docker.yml b/x86-QEMU-Docker.yml index ba19ebe..8891e2c 100644 --- a/x86-QEMU-Docker.yml +++ b/x86-QEMU-Docker.yml @@ -141,9 +141,9 @@ systemd: [Unit] Description=Docker Compose Updater for /srv/%I Requires=network-online.target - Requires=gvisor-updater.service + Requisite=docker.service After=network-online.target - After=gvisor-updater.service + After=docker.service [Service] Type=oneshot