Set DEBIAN_FRONTEND with export
When setting DEBIAN_FRONTEND on command line with sudo inside a Ubuntu Bionic vagrant vm it fails. Instead set this variable with export since we use $SUDO which executed "sudo -e" we will get set variables pushed through. Change-Id: I2c860de8669b6d64fb00410238b004543441da12
This commit is contained in:
parent
4f0e3ee81e
commit
80f456ff08
@ -207,7 +207,8 @@ if [ "${MANAGE_REPOS}" = true ]; then
|
||||
$SUDO $YUM update -y
|
||||
update_ret=$?
|
||||
elif uses_debs; then
|
||||
$SUDO DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confnew" upgrade
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
$SUDO apt-get -y -o Dpkg::Options::="--force-confnew" upgrade
|
||||
update_ret=$?
|
||||
fi
|
||||
if [ $update_ret -ne 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user