X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fnaive_system_updater.sh;h=cf9cbf898228ec2908c65cef9673fd5ce8aa4232;hb=c7024b410857b8f1cc727b5eae30fb79a11c5aff;hp=b15d0efef2cb9905869811af115eb70faed09acb;hpb=51356b493613a783d95f8ba5f6ef7777c8e50f5a;p=feisty_meow.git diff --git a/scripts/system/naive_system_updater.sh b/scripts/system/naive_system_updater.sh index b15d0efe..cf9cbf89 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_die "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_die "problem while doing 'apt-get dist-upgrade'" +exit_on_error "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\"; \ +" +exit_on_error "problem while doing 'apt-get dist-upgrade'"