next try to fix upgrade stalling
[feisty_meow.git] / scripts / system / naive_system_updater.sh
index a6d65e969a1aff476929515b277b2f320fd579c7..3bd16a284874065c3f3ed3d2c4a6f0b9e76bf9e8 100644 (file)
@@ -2,9 +2,10 @@
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 sudo apt-get update -y
-test_or_fail "problem while doing 'apt-get update'"
-# new magic to tell dpkg to go with existing config files.  let's see if it works!
-sudo apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold"
-test_or_fail "problem while doing 'apt-get dist-upgrade'"
+test_or_die "problem while doing 'apt-get update'"
+# newest magic to tell dpkg to go with existing config files and force non-interactive version.
+export DEBIAN_FRONTEND=noninteractive
+sudo apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
+test_or_die "problem while doing 'apt-get dist-upgrade'"