X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fnaive_system_updater.sh;h=7be9d658f0a71426f00040af37be3f81652a702d;hb=5d4046f0dd4f4281e7a898b9595d2f3ff800152d;hp=08cd526647dad3869d960888c92a576542cfdc68;hpb=25005ff22c9f845ffffa682a903b0c0b8f76e28d;p=feisty_meow.git diff --git a/scripts/system/naive_system_updater.sh b/scripts/system/naive_system_updater.sh index 08cd5266..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 -check_result "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" -check_result "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'"