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
66
66
declare -i total_time=0
67
67
68
68
printf " 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" ) " != " " ]];
70
70
do
71
71
printf " ." >> $STARTUP_LOG
72
72
counter+=1
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
66
66
declare -i total_time=0
67
67
68
68
printf " 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" ) " != " " ]];
70
70
do
71
71
printf " ." >> $STARTUP_LOG
72
72
counter+=1
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
66
66
declare -i total_time=0
67
67
68
68
printf " 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" ) " != " " ]];
70
70
do
71
71
printf " ." >> $STARTUP_LOG
72
72
counter+=1
You can’t perform that action at this time.
0 commit comments