Execute apt upgrade with DEBIAN_FRONTEND environment variable
authorMichael Prokop <mika@grml.org>
Tue, 8 Apr 2014 17:31:29 +0000 (19:31 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 8 Apr 2014 17:31:29 +0000 (19:31 +0200)
Noticed via recent libssl1.0.0 upgrade that the
DEBIAN_FRONTEND usage is missing in the $APTUPGRADE
command line.

chroot-script

index bbc91f0..b0d0c52 100755 (executable)
@@ -223,7 +223,7 @@ upgrade_system() {
   if [ "$UPGRADE_SYSTEM" = "yes" ] ; then
     echo "Running update + upgrade"
     $APTUPDATE
-    $APTUPGRADE
+    DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTUPGRADE
   else
     echo "Not running update + upgrade as \$UPDATE_AND_UPGRADE is not set to 'yes'."
   fi