Cleaning up templates for dnf-automatic

This commit is contained in:
Tyler Hale 2022-08-22 14:28:58 -06:00
parent 9e87e0aad6
commit ec5e6d3dff
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
7 changed files with 16 additions and 8 deletions

View file

@ -0,0 +1,2 @@
[Service]
ExecStartPost=/bin/sh -ec 'dnf needs-restarting -r | grep -q "Reboot is req.*" && shutdown -r +5 Rebooting after applying package updates || exit 0'