From 80f456ff08b63c104002c9705dcff27cd821d45a Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Mon, 4 Feb 2019 15:39:46 +0100 Subject: [PATCH] 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 --- run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 9315d1268..f311e9074 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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