Reboot after a successful upgrade

This commit is contained in:
Jeremy Gardais 2020-06-22 11:23:20 +02:00
parent 78be3391b0
commit 14fc3ac684
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 1 deletions

View File

@ -285,9 +285,11 @@ main() { # {{{
## Try to upgrade Maco
### If error: Exit 50
### If success: Clean host (temp files,…)
### then reboot the system
upgrade_maco \
|| exit 50 \
&& clean_host
&& clean_host \
&& systemctl reboot
}
# }}}