podman-auto-update-custom: Rework
This commit is contained in:
parent
c77a50fde2
commit
57cc4cec2c
1 changed files with 2 additions and 10 deletions
|
@ -31,8 +31,10 @@
|
||||||
|
|
||||||
# It looks like there is no way to activate the "built-in" service and timer ...
|
# It looks like there is no way to activate the "built-in" service and timer ...
|
||||||
systemd.services.podman-auto-update-custom = {
|
systemd.services.podman-auto-update-custom = {
|
||||||
|
description = "Run podman auto-update daily";
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
startAt = "daily";
|
||||||
|
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
let
|
let
|
||||||
|
@ -44,14 +46,4 @@
|
||||||
ExecStartPost = "${podman}/bin/podman image prune -f";
|
ExecStartPost = "${podman}/bin/podman image prune -f";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers.podman-auto-update-custom = {
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "daily";
|
|
||||||
RandomizedDelaySec = 900;
|
|
||||||
Persistent = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue