X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fnaive_system_updater.sh;h=7790fe884fe87a03602939d89a10c29aebf0306b;hb=2e93c29a45ae9d58694c0de962151e6829739380;hp=a6d65e969a1aff476929515b277b2f320fd579c7;hpb=fc51448ac8c18804d3cfc1997af3eaca5fad4c2e;p=feisty_meow.git diff --git a/scripts/system/naive_system_updater.sh b/scripts/system/naive_system_updater.sh index a6d65e96..7790fe88 100644 --- a/scripts/system/naive_system_updater.sh +++ b/scripts/system/naive_system_updater.sh @@ -2,9 +2,14 @@ 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. +sudo bash -c "\ + export DEBIAN_FRONTEND=noninteractive; \ + 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'"