File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
apollo-adminservice/src/main/scripts
apollo-configservice/src/main/scripts
apollo-portal/src/main/scripts Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
6666declare -i total_time=0
6767
6868printf " Waiting for server startup" >> $STARTUP_LOG
69- until [[ (( counter - ge max_counter )) || " $( curl -X GET --silent --connect-timeout 1 --head $SERVER_URL | grep " Coyote" ) " != " " ]];
69+ until [[ (( counter - ge max_counter )) || " $( curl -X GET --silent --connect-timeout 1 --max-time 2 -- head $SERVER_URL | grep " Coyote" ) " != " " ]];
7070do
7171 printf " ." >> $STARTUP_LOG
7272 counter+=1
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
6666declare -i total_time=0
6767
6868printf " Waiting for server startup" >> $STARTUP_LOG
69- until [[ (( counter - ge max_counter )) || " $( curl -X GET --silent --connect-timeout 1 --head $SERVER_URL | grep " Coyote" ) " != " " ]];
69+ until [[ (( counter - ge max_counter )) || " $( curl -X GET --silent --connect-timeout 1 --max-time 2 -- head $SERVER_URL | grep " Coyote" ) " != " " ]];
7070do
7171 printf " ." >> $STARTUP_LOG
7272 counter+=1
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
6666declare -i total_time=0
6767
6868printf " Waiting for server startup" >> $STARTUP_LOG
69- until [[ (( counter - ge max_counter )) || " $( curl -X GET --silent --connect-timeout 1 --head $SERVER_URL | grep " Coyote" ) " != " " ]];
69+ until [[ (( counter - ge max_counter )) || " $( curl -X GET --silent --connect-timeout 1 --max-time 2 -- head $SERVER_URL | grep " Coyote" ) " != " " ]];
7070do
7171 printf " ." >> $STARTUP_LOG
7272 counter+=1
You can’t perform that action at this time.
0 commit comments