Skip to content

Commit 2873df3

Browse files
committed
Fixed wait-for-services.sh
1 parent 1bf00aa commit 2873df3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: _wait-for-services.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ done=false
1414

1515
while [[ "$done" = false ]]; do
1616
for port in $ports; do
17-
curl --fail http://${host}:${port}$path >& /dev/null
17+
url=http://${host}:${port}$path
18+
curl --fail $url >& /dev/null
1819
if [[ "$?" -eq "0" ]]; then
1920
done=true
2021
else
2122
done=false
22-
echo http://${host}:${port}/health
23+
echo $url
2324
break
2425
fi
2526
done

Diff for: wait-for-services.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
./_wait-for-services.sh /actuator/health 8081 8082 8083 8084 8085 8086
44

5-
./_wait-for-services.sh /health 8099 8098
5+
./_wait-for-services.sh /health 8099

0 commit comments

Comments
 (0)