Upgrade system
This commit is contained in:
parent
04b4befbc6
commit
c3cd76960c
|
@ -185,6 +185,15 @@ procs running (with the pattern: ${RED}${local_proc_pattern}${COLOR_DEBUG}) on t
|
||||||
|
|
||||||
return "${return_proc_running}"
|
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() { # {{{
|
main() { # {{{
|
||||||
|
@ -218,9 +227,12 @@ main() { # {{{
|
||||||
is_proc_running "${maco_proc_pattern}" \
|
is_proc_running "${maco_proc_pattern}" \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
|
## Try to upgrade the system
|
||||||
|
upgrade_system
|
||||||
|
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
||||||
exit 0
|
exit 255
|
||||||
|
|
Loading…
Reference in New Issue