bundles/apt: use DEBIAN_FRONTEND=noninteractive everywhere in upgrade-and-reboot
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-10-23 04:33:01 +02:00
parent 07dcb813f3
commit 6398e668e1
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -42,11 +42,11 @@ then
exit 1
fi
apt-get autoclean
apt-get autoremove
DEBIAN_FRONTEND=noninteractive apt-get -y -q autoclean
DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove
if [[ -f /var/run/reboot-required ]]
then
date | mail -s "SYSREBOOTNOW $(cat /etc/node.name)" ${data['mail']}
date | mail -s "SYSREBOOTNOW ${node.name}" ${data['mail']}
systemctl reboot
fi