Skip to content

Commit 6f3a431

Browse files
committed
Amend heartbeat check.
1 parent f7ef305 commit 6f3a431

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ getHeartbeat(){
4141
eval "response=$(docker run --network fiware_default --rm quay.io/curl/curl -s -o /dev/null -w "%{http_code}" "$1")"
4242
}
4343

44-
waitForOrion () {
44+
waitForOrionLD () {
4545
echo -e "\n⏳ Waiting for \033[1;34mOrion-LD\033[0m to be available\n"
4646

47-
while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion` == "healthy" ]
47+
while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion-ld` == "healthy" ]
4848
do
4949
echo -e "\nContext Broker HTTP state: ${response} (waiting for 200)"
5050
pause 6
@@ -177,7 +177,7 @@ case "${command}" in
177177
${dockerCmd} -f docker-compose/common.yml -f docker-compose/orion-ld.yml up -d --remove-orphans --renew-anon-volumes
178178
waitForMongo
179179
addDatabaseIndex
180-
waitForOrion
180+
waitForOrionLD
181181
export CONTEXT_BROKER=orion:1026
182182
loadData
183183
displayServices fiware

0 commit comments

Comments
 (0)