Skip to content

Commit db21687

Browse files
committed
Check for ETSI core context availability
1 parent 25c1703 commit db21687

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ waitForUserContext () {
9494

9595
waitForCoreContext () {
9696
echo -e "\n⏳ Checking availability of \033[1m core @context\033[0m from ETSI\n"
97-
getHeartbeat "${CORE_CONTEXT}"
97+
eval "response=$(docker run --rm curlimages/curl -s -o /dev/null -w "%{http_code}" "$CORE_CONTEXT")"
9898
while [ "${response}" -eq 000 ]
9999
do
100100
echo -e "\n@context HTTP state: ${response} (waiting for 200)"
101101
pause 3
102-
getHeartbeat "${CORE_CONTEXT}"
102+
eval "response=$(docker run --rm curlimages/curl -s -o /dev/null -w "%{http_code}" "$CORE_CONTEXT")"
103103
done
104104
}
105105

0 commit comments

Comments
 (0)