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' ..."