Ensure maco.service is enable for next reboot

This commit is contained in:
Jeremy Gardais 2020-07-06 08:29:13 +02:00
parent e303c9fd17
commit 588dc554ef
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 0 deletions

View File

@ -285,10 +285,12 @@ main() { # {{{
## Try to upgrade Maco
### If error: Exit 50
### If success: Clean host (temp files,…)
### Ensure maco.service is enable for next reboot
### then reboot the system
upgrade_maco \
|| exit 50 \
&& clean_host \
&& systemctl --quiet enable maco.service > /dev/null 2>&1 \
&& systemctl reboot
}