From 6deb021ec2b5064b210158dc783128b836c97baa Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Thu, 4 Apr 2024 14:23:30 +0900 Subject: [PATCH] chore: cicd common script updated --- cicd/common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cicd/common.sh b/cicd/common.sh index 5ff24a960..e4111e6b3 100644 --- a/cicd/common.sh +++ b/cicd/common.sh @@ -177,7 +177,11 @@ get_llb_peerIP() { ## Deletes a docker host ## arg1 - hostname delete_docker_host() { - if docker kill $1 2>&1 >> /dev/null + dcmd="kill" + if [[ $1 == "llb"* ]] || [[ $1 == "loxilb"* ]]; then + dcmd="stop" + fi + if docker $dcmd $1 2>&1 >> /dev/null then hd="true" ka=`docker ps -f name=ka_$1| grep -w ka_$1 | cut -d " " -f 1 | grep -iv "CONTAINER"`