From ba36570ec8045305a3c9257d6fa251acbc344a09 Mon Sep 17 00:00:00 2001 From: Junho Hwang <72647031+juno-junho@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:42:37 -0700 Subject: [PATCH] Update switch.sh --- scripts/switch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/switch.sh b/scripts/switch.sh index 460d5a6e..d32531db 100644 --- a/scripts/switch.sh +++ b/scripts/switch.sh @@ -4,10 +4,10 @@ PROFILE_BLUE=$(curl -s http://localhost:8081/api/profile) PROFILE_GREEN=$(curl -s http://localhost:8082/api/profile) # blue가 사용중이면 green이 쉬고 있고, 반대면 blue가 쉬고 있음 -if [ $PROFILE_BLUE == blue ] +if [ $PROFILE_BLUE == green ] then IDLE_PORT=8082 -elif [ $PROFILE_GREEN == green ] +elif [ $PROFILE_GREEN == blue ] then IDLE_PORT=8081 else