From e23475ff26af13d073f97fef4eb80026380e084a Mon Sep 17 00:00:00 2001 From: Alessandro Battilani Date: Sat, 30 Mar 2024 18:44:40 +0100 Subject: [PATCH] sleep 120 to stop container --- update-lxc-container.sh | 1 + update-lxc-single-container.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/update-lxc-container.sh b/update-lxc-container.sh index f0a2608..4b405c7 100755 --- a/update-lxc-container.sh +++ b/update-lxc-container.sh @@ -9,6 +9,7 @@ Color_Off='\033[0m' # Text Reset TMSTMP=$(date +'%Y%m%d%H%M%S') function stop_container() { + sleep 120 lxc stop ${1} echo -e $(date) "- ${BGreen}Container ${1} stopped${Color_Off}" } diff --git a/update-lxc-single-container.sh b/update-lxc-single-container.sh index e7703fd..34c31eb 100755 --- a/update-lxc-single-container.sh +++ b/update-lxc-single-container.sh @@ -5,6 +5,7 @@ BGreen='\033[1;32m' # Green Color_Off='\033[0m' # Text Reset function stop_container() { + sleep 120 lxc stop ${1} echo -e $(date) "- ${BGreen}Container ${1} stopped${Color_Off}" }