os-upgrade.sh: add command 'dpkg --configure -a'.

This commit is contained in:
Christoph 2021-03-01 18:56:07 +01:00
parent 4b41293637
commit a54b0a9281

View File

@ -342,6 +342,26 @@ if $terminal ; then
echo -e "\033[2B"
fi
blank_line
echononl "Configure not yet configured packages"
echo_print_command "dpkg --configure -a"
dpkg --configure -a > $log_file 2>&1
if $terminal; then
echo -e "\033[2A"
fi
if [[ $? -gt 0 ]]; then
echo_failed
if ! $terminal ; then
error "Command \"dpkg --configure -a\" failed!"
fi
fatal "$(cat $log_file)"
else
echo_done
fi
if $terminal ; then
echo -e "\033[2B"
fi
blank_line
echononl "Clear out the local repository of retrieved package files"
echo_print_command "apt-get clean"