From ba2eae92fc2962738545e09c63cac1192a868f88 Mon Sep 17 00:00:00 2001 From: thguss Date: Fri, 18 Oct 2024 23:31:31 +0900 Subject: [PATCH] fix: updated grep keyword --- script/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/deploy.sh b/script/deploy.sh index c9833dd0..aa957ff6 100644 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -12,7 +12,7 @@ TAG="latest" CONTAINER_NAME="smeem" HEALTH_CHECK_URI="/actuator/health" -docker_ps_output=$(sudo docker ps | grep $CONTAINER_NAME) +docker_ps_output=$(sudo docker ps | grep "$CONTAINER_NAME-") running_container_name=$(echo "$docker_ps_output" | awk '{print $NF}') blue_port=$(echo "$running_container_name" | awk -F'-' '{print $NF}')