Ensure to enable maco.service before maco's upgrade
This commit is contained in:
parent
dcbe6c7459
commit
a18bd2cb96
|
@ -283,15 +283,17 @@ main() { # {{{
|
||||||
is_proc_running "${apt_proc_pattern}" \
|
is_proc_running "${apt_proc_pattern}" \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
## Try to upgrade Maco
|
## Maco is ready to be upgraded
|
||||||
|
### First, ensure maco.service is enable for next reboot
|
||||||
|
systemctl --quiet enable maco.service > /dev/null 2>&1
|
||||||
|
|
||||||
|
## Then try to upgrade Maco
|
||||||
### If error: Exit 50
|
### If error: Exit 50
|
||||||
### If success: Clean host (temp files,…)
|
### If success: Clean host (temp files,…)
|
||||||
### Ensure maco.service is enable for next reboot
|
|
||||||
### then reboot the system
|
### then reboot the system
|
||||||
upgrade_maco \
|
upgrade_maco \
|
||||||
|| exit 50 \
|
|| exit 50 \
|
||||||
&& clean_host \
|
&& clean_host \
|
||||||
&& systemctl --quiet enable maco.service > /dev/null 2>&1 \
|
|
||||||
&& systemctl reboot
|
&& systemctl reboot
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue