Upgrade system

This commit is contained in:
Jeremy Gardais 2020-06-18 16:39:14 +02:00
parent 04b4befbc6
commit c3cd76960c
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 17 additions and 5 deletions

View File

@ -185,6 +185,15 @@ procs running (with the pattern: ${RED}${local_proc_pattern}${COLOR_DEBUG}) on t
return "${return_proc_running}"
}
# }}}
upgrade_system() { # {{{
debug_message "upgrade_system \
Try to apply APT upgrades".
DEBIAN_FRONTEND=noninteractive aptitude -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold full-upgrade >> "${APT_TMP_FILE}" 2>&1
}
# }}}
main() { # {{{
@ -218,9 +227,12 @@ main() { # {{{
is_proc_running "${maco_proc_pattern}" \
&& exit 0
## Try to upgrade the system
upgrade_system
}
# }}}
main
exit 0
exit 255