bundles/c3voc-addons: add upgrade-and-reboot to bundle
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
0f0ee046b1
commit
0893156723
6 changed files with 39 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue