feat: setup/manage dnf-autoupdate

- create service to run dnf update
- create timer to call the service
- manage settings via params
This commit is contained in:
2023-12-03 17:43:49 +11:00
parent e0d1ec8926
commit d8ff9ddb11
4 changed files with 38 additions and 0 deletions
@@ -0,0 +1,6 @@
[Unit]
Description=dnf-autoupdater-service
[Service]
Type=oneshot
ExecStart=/usr/bin/dnf update -y
@@ -0,0 +1,10 @@
[Unit]
Description=dnf-autoupdater-timer
[Timer]
OnCalendar=<%= @on_calendar %>
RandomizedDelaySec=<%= @randomized_delay_sec %>
Persistent=true
[Install]
WantedBy=timers.target