X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fnaive_system_updater.sh;h=7be9d658f0a71426f00040af37be3f81652a702d;hb=5d4046f0dd4f4281e7a898b9595d2f3ff800152d;hp=b15d0efef2cb9905869811af115eb70faed09acb;hpb=bdcc716c3d4ef7c405e580aa68ca10fb6c107800;p=feisty_meow.git diff --git a/scripts/system/naive_system_updater.sh b/scripts/system/naive_system_updater.sh index b15d0efe..7be9d658 100644 --- a/scripts/system/naive_system_updater.sh +++ b/scripts/system/naive_system_updater.sh @@ -1,10 +1,15 @@ 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'" +sudo apt update -y +exit_on_error "problem while doing 'apt 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 dist-upgrade -y -o Dpkg::Options::=\"--force-confdef\" \ + -o Dpkg::Options::=\"--force-confold\"; \ +" +exit_on_error "problem while doing 'apt dist-upgrade'"