@@ -30,7 +30,7 @@ sleep 12
3030# Sticky (yes, there is only one app!!!)
3131echotestlabel " sticky one app"
3232SESSIONCO=$( curl -v http://localhost:8090/testapp/test.jsp -m 20 -o /dev/null 2>&1 | grep Set-Cookie | awk ' { print $3 } ' | sed ' s:;::' )
33- if [ " ${SESSIONCO} " == " " ]; then
33+ if [ " ${SESSIONCO} " = " " ]; then
3434 echo " Failed no sessionid in curl output..."
3535 curl -v http://localhost:8090/testapp/test.jsp
3636fi
@@ -55,7 +55,7 @@ NEWNODE=$(echo ${NEWCO} | awk -F = '{ print $2 }' | awk -F . '{ print $2 }')
5555echo " second: ${NEWCO} node: ${NEWNODE} "
5656echo " Checking we can reach the 2 nodes"
5757i=0
58- while [ " ${NODE} " == " ${NEWNODE} " ]
58+ while [ " ${NODE} " = " ${NEWNODE} " ]
5959do
6060 NEWCO=$( curl -v http://localhost:8090/testapp/test.jsp -m 20 -o /dev/null 2>&1 | grep Set-Cookie | awk ' { print $3 } ' | sed ' s:;::' )
6161 NEWNODE=$( echo ${NEWCO} | awk -F = ' { print $2 }' | awk -F . ' { print $2 }' )
6464 echo " Can't find the 2 webapps"
6565 exit 1
6666 fi
67- if [ " ${NEWNODE} " == " " ]; then
67+ if [ " ${NEWNODE} " = " " ]; then
6868 echo " Can't find node in request"
6969 exit 1
7070 fi
@@ -92,7 +92,7 @@ PORT=$(curl http://localhost:8090/mod_cluster_manager -m 20 | grep Node | grep $
9292NUMBER=$( expr ${PORT} - 8080 + 1)
9393CODE=" 200"
9494i=0
95- while [ " $CODE " == " 200" ]
95+ while [ " $CODE " = " 200" ]
9696do
9797 if [ $i -gt 100 ]; then
9898 echo " Done remaining tomcat still answering!"
0 commit comments