remove reboot mails, noone does care about these anyway

This commit is contained in:
Franzi 2023-07-26 08:29:37 +02:00
parent 3a8e3ce01b
commit 3826ccf4ec
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 0 additions and 14 deletions

View file

@ -46,10 +46,6 @@ fi
if [[ -f /var/run/reboot-required ]] && [[ "$auto_reboot_enabled" == "True" ]]
then
if [[ -n "$reboot_mail_to" ]]
then
date | mail -s "SYSREBOOTNOW $nodename" "$reboot_mail_to"
fi
systemctl reboot
fi

View file

@ -1,3 +1,2 @@
nodename="${node.name}"
reboot_mail_to="${node.metadata.get('apt/unattended-upgrades/reboot_mail_to', '')}"
auto_reboot_enabled="${node.metadata.get('apt/unattended-upgrades/reboot_enabled', True)}"