From c6a758d8a0e1f0d099848bcc4d7c377ea72b4f3b Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 5 Apr 2024 14:21:39 -0700 Subject: [PATCH] Switch to using systemd timer for container update Signed-off-by: Tommy --- x86-QEMU-Docker.ign | 5 +++++ x86-QEMU-Docker.yml | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/x86-QEMU-Docker.ign b/x86-QEMU-Docker.ign index b8a7e00..a110679 100644 --- a/x86-QEMU-Docker.ign +++ b/x86-QEMU-Docker.ign @@ -251,6 +251,11 @@ "enabled": false, "name": "docker-compose-updater.service" }, + { + "contents": "[Unit]\nDescription=Run docker-compose-updater once a week, 15 minutes after OS update\n\n[Timer]\nOnCalendar=Fri 0:15\nPersistent=true\n\n[Install]\nWantedBy=timers.target\n", + "enabled": false, + "name": "docker-compose-updater.timer" + }, { "enabled": true, "name": "docker.service" diff --git a/x86-QEMU-Docker.yml b/x86-QEMU-Docker.yml index c31a5cc..52d1a21 100644 --- a/x86-QEMU-Docker.yml +++ b/x86-QEMU-Docker.yml @@ -140,6 +140,18 @@ systemd: [Install] WantedBy=multi-user.target + - name: docker-compose-updater.timer + enabled: false + contents: | + [Unit] + Description=Run docker-compose-updater once a week, 15 minutes after OS update + + [Timer] + OnCalendar=Fri 0:15 + Persistent=true + + [Install] + WantedBy=timers.target - name: docker.service enabled: true - name: fstrim.timer