Skip to content

Commit

Permalink
[CHORE] script if문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yummygyudon committed Oct 3, 2024
1 parent c8dd832 commit e326e17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/health_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' ..."
Expand Down

0 comments on commit e326e17

Please sign in to comment.