From e326e17eaa60e98e17e0816b11b586d271b34eec Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Fri, 4 Oct 2024 02:56:10 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20script=20if=EB=AC=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/health_check.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/health_check.sh b/scripts/health_check.sh index f44e6011..243650a0 100644 --- a/scripts/health_check.sh +++ b/scripts/health_check.sh @@ -2,10 +2,13 @@ CURRENT_RUNNING_PORT=$(cat /etc/nginx/conf.d/service-url.inc | grep -Po '[0-9]+' | tail -1) -if [ ${CURRENT_RUNNING_PORT} -ne 8081 -o ${CURRENT_RUNNING_PORT} -ne 8082 ]; then +if [ ${CURRENT_RUNNING_PORT} -ne 8081 ]; then # run_new_was 에서 정상적으로 처리되지 않았다는 의미 - 더 이상 진행되면 안된다. echo "> No WAS is connected to nginx" exit 1 +elif [ ${CURRENT_RUNNING_PORT} -ne 8082 ]; then + echo "> No WAS is connected to nginx" + exit 1 fi echo "> Start health check of WAS at 'http://127.0.0.1:${CURRENT_RUNNING_PORT}/api/v1/test' ..."