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:
@@ -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
|
||||
Reference in New Issue
Block a user