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