bundles/apt: use DEBIAN_FRONTEND=noninteractive everywhere in upgrade-and-reboot
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
07dcb813f3
commit
6398e668e1
1 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ trap 'rm -f "$softlockdir"/UNATTENDED' EXIT
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef dist-upgrade
|
DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef dist-upgrade
|
||||||
|
|
||||||
ret=$?
|
ret=$?
|
||||||
if (( $ret != 0 ))
|
if (( $ret != 0 ))
|
||||||
|
@ -42,11 +42,11 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get autoclean
|
DEBIAN_FRONTEND=noninteractive apt-get -y -q autoclean
|
||||||
apt-get autoremove
|
DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove
|
||||||
|
|
||||||
if [[ -f /var/run/reboot-required ]]
|
if [[ -f /var/run/reboot-required ]]
|
||||||
then
|
then
|
||||||
date | mail -s "SYSREBOOTNOW $(cat /etc/node.name)" ${data['mail']}
|
date | mail -s "SYSREBOOTNOW ${node.name}" ${data['mail']}
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue