From e6cf08c18c4504d863d8ab19b3768dd51cf74ab6 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 19 Aug 2023 19:34:07 +0200 Subject: [PATCH] Updating for noninteractive shell for ubuntu updates. --- libraries/update/ubuntu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/update/ubuntu.sh b/libraries/update/ubuntu.sh index 8e52e94..8f94280 100644 --- a/libraries/update/ubuntu.sh +++ b/libraries/update/ubuntu.sh @@ -34,7 +34,7 @@ update_non_root() { count=$(apt list --upgradeable | wc -l) # Count, with 1 additional line if [[ $count -ne 1 ]]; then info "Updating $(expr $count - 1) packets..." - run_as_root "apt-get dist-upgrade -y" + run_as_root "apt-get dist-upgrade -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold'" success "System has been updated!" else success "System up to date." @@ -49,7 +49,7 @@ update_as_root() { count=$(apt list --upgradeable | wc -l) # Count, with 1 additional line if [[ $count -ne 1 ]]; then info "Updating $(expr $count - 1) packets..." - apt-get dist-upgrade -y + apt-get dist-upgrade -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' success "System has been updated!" else success "System up to date."