1
0
Fork 0

podman-auto-update-custom: Rework

This commit is contained in:
Daniel Kempkens 2023-06-01 21:13:01 +02:00
parent c77a50fde2
commit 57cc4cec2c
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -31,8 +31,10 @@
# It looks like there is no way to activate the "built-in" service and timer ...
systemd.services.podman-auto-update-custom = {
description = "Run podman auto-update daily";
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
startAt = "daily";
serviceConfig =
let
@ -44,14 +46,4 @@
ExecStartPost = "${podman}/bin/podman image prune -f";
};
};
systemd.timers.podman-auto-update-custom = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
RandomizedDelaySec = 900;
Persistent = true;
};
};
}