bundles/c3voc-addons: add upgrade-and-reboot to bundle
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-01-17 18:43:30 +01:00
parent 0f0ee046b1
commit 0893156723
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 39 additions and 1 deletions

View file

@ -55,6 +55,8 @@ DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove
if [[ -f /var/run/reboot-required ]]
then
% if 'mail' in data:
date | mail -s "SYSREBOOTNOW ${node.name}" ${data['mail']}
% endif
systemctl reboot
fi