Use noninteractive frontend for Debian upgrade

When upgrading packages for Debian based make
sure we set the frontend to noninteractive so
we dont get stopped on questions popping up.

Change-Id: I2dfa77840401261e4c58095b978e1f6374ed69a1
This commit is contained in:
Tobias Urdin 2018-09-17 16:04:58 +02:00
parent ce406a563d
commit dedc5ccd0d

View File

@ -209,7 +209,7 @@ if [ "${MANAGE_REPOS}" = true ]; then
$SUDO $YUM update -y
update_ret=$?
elif uses_debs; then
$SUDO apt-get upgrade -y
$SUDO DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confnew" upgrade
update_ret=$?
fi
if [ $update_ret -ne 0 ]; then