Infra_mgmt/roles/unattended-upgrades/templates/reboot_alert.sh.j2

6 lines
236 B
Plaintext
Raw Permalink Normal View History

2023-05-07 12:01:52 +02:00
#!/bin/bash
if [ -f /var/run/reboot-required ]; then
echo "A reboot is required following updates to server `hostname -f` for packages: \n \n $(cat /var/run/reboot-required.pkgs)" | mail -s "Reboot Required" {{ smtp_username }}
fi