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}" }