From 588dc554effb43f9fed8260911f273084445c6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 6 Jul 2020 08:29:13 +0200 Subject: [PATCH] Ensure maco.service is enable for next reboot --- cluster/maco.apply.update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster/maco.apply.update.sh b/cluster/maco.apply.update.sh index f509a3c..90ebfe9 100755 --- a/cluster/maco.apply.update.sh +++ b/cluster/maco.apply.update.sh @@ -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 }