Reboot after a successful upgrade
This commit is contained in:
parent
78be3391b0
commit
14fc3ac684
|
@ -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
|
||||
|
||||
}
|
||||
# }}}
|
||||
|
|
Loading…
Reference in New Issue