os-upgrade.sh: add command 'dpkg --configure -a'.
This commit is contained in:
parent
4b41293637
commit
a54b0a9281
@ -342,6 +342,26 @@ if $terminal ; then
|
|||||||
echo -e "\033[2B"
|
echo -e "\033[2B"
|
||||||
fi
|
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
|
blank_line
|
||||||
echononl "Clear out the local repository of retrieved package files"
|
echononl "Clear out the local repository of retrieved package files"
|
||||||
echo_print_command "apt-get clean"
|
echo_print_command "apt-get clean"
|
||||||
|
Loading…
Reference in New Issue
Block a user