2 lines
155 B
Django/Jinja
2 lines
155 B
Django/Jinja
[Service]
|
|
ExecStartPost=/bin/sh -ec 'needs-restarting -r | grep -q "Reboot is req.*" && shutdown -r +5 Rebooting after applying package updates || exit 0'
|