Ansible-Linux_Base/roles/base/templates/dnf-automatic-install.service-dnf.j2

3 lines
159 B
Text
Raw Normal View History

2022-07-19 09:45:20 -06:00
[Service]
ExecStartPost=/bin/sh -ec 'dnf needs-restarting -r | grep -q "Reboot is req.*" && shutdown -r +5 Rebooting after applying package updates || exit 0'