Skip to content

Commit 84854a3

Browse files
committed
Fixed wait_for_url values
1 parent e2f047d commit 84854a3

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

platform/entrypoint.sh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -685,17 +685,34 @@ for app in "${apps[@]}"; do
685685
exit 1
686686
fi
687687

688+
# resolve the effective store URL and upload function for this app
689+
if [ -n "$app_quad_store_url" ]; then
690+
app_store_url="$app_quad_store_url"
691+
app_store_content_type="application/n-quads"
692+
app_store_fn="append_quads"
693+
printf "\n### Quad store URL: %s\n" "$app_quad_store_url"
694+
else
695+
app_store_url="$app_graph_store_url"
696+
app_store_content_type="application/n-triples"
697+
app_store_fn="gsp_append_quads"
698+
printf "\n### Graph store URL (GSP fallback): %s\n" "$app_graph_store_url"
699+
fi
700+
688701
# check if this is the root end-user or root admin app by comparing origins
689702
if [ "$app_type" = "https://w3id.org/atomgraph/linkeddatahub/apps#EndUserApplication" ] && [ "$app_origin" = "$ORIGIN" ]; then
690703
root_end_user_app="$app_uri"
691704
root_end_user_quad_store_url="$app_quad_store_url"
705+
root_end_user_store_url="$app_store_url"
706+
root_end_user_store_content_type="$app_store_content_type"
692707
root_end_user_endpoint_url="$app_endpoint_url"
693708
root_end_user_service_auth_user="$app_service_auth_user"
694709
root_end_user_service_auth_pwd="$app_service_auth_pwd"
695710
fi
696711
if [ "$app_type" = "https://w3id.org/atomgraph/linkeddatahub/apps#AdminApplication" ] && [ "$app_origin" = "$ADMIN_ORIGIN" ]; then
697712
root_admin_app="$app_uri"
698713
root_admin_quad_store_url="$app_quad_store_url"
714+
root_admin_store_url="$app_store_url"
715+
root_admin_store_content_type="$app_store_content_type"
699716
root_admin_endpoint_url="$app_endpoint_url"
700717
root_admin_service_auth_user="$app_service_auth_user"
701718
root_admin_service_auth_pwd="$app_service_auth_pwd"
@@ -707,23 +724,6 @@ for app in "${apps[@]}"; do
707724
echo "<${app_uri}> <http://xmlns.com/foaf/0.1/maker> <${OWNER_URI}> <${app_uri}> ." >> "$based_context_dataset"
708725
fi
709726

710-
if [ -n "$app_quad_store_url" ]; then
711-
printf "\n### Quad store URL: %s\n" "$app_quad_store_url"
712-
else
713-
printf "\n### Graph store URL (GSP fallback): %s\n" "$app_graph_store_url"
714-
fi
715-
716-
# resolve the effective store URL and upload function for this app
717-
if [ -n "$app_quad_store_url" ]; then
718-
app_store_url="$app_quad_store_url"
719-
app_store_content_type="application/n-quads"
720-
app_store_fn="append_quads"
721-
else
722-
app_store_url="$app_graph_store_url"
723-
app_store_content_type="application/n-triples"
724-
app_store_fn="gsp_append_quads"
725-
fi
726-
727727
# Create app-specific subfolder based on origin
728728
app_folder=$(echo "$app_origin" | sed 's|https://||' | sed 's|http://||' | sed 's|[:/]|-|g')
729729

@@ -1123,17 +1123,17 @@ eval "$transform"
11231123

11241124
java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|PermSize|ThreadStackSize'
11251125

1126-
# wait for the end-user GSP service
1126+
# wait for the end-user service
11271127

1128-
printf "\n### Waiting for %s...\n" "$root_end_user_quad_store_url"
1128+
printf "\n### Waiting for %s...\n" "$root_end_user_store_url"
11291129

1130-
wait_for_url "$root_end_user_quad_store_url" "$root_end_user_service_auth_user" "$root_end_user_service_auth_pwd" "$TIMEOUT" "application/n-quads"
1130+
wait_for_url "$root_end_user_store_url" "$root_end_user_service_auth_user" "$root_end_user_service_auth_pwd" "$TIMEOUT" "$root_end_user_store_content_type"
11311131

1132-
# wait for the admin GSP service
1132+
# wait for the admin service
11331133

1134-
printf "\n### Waiting for %s...\n" "$root_admin_quad_store_url"
1134+
printf "\n### Waiting for %s...\n" "$root_admin_store_url"
11351135

1136-
wait_for_url "$root_admin_quad_store_url" "$root_admin_service_auth_user" "$root_admin_service_auth_pwd" "$TIMEOUT" "application/n-quads"
1136+
wait_for_url "$root_admin_store_url" "$root_admin_service_auth_user" "$root_admin_service_auth_pwd" "$TIMEOUT" "$root_admin_store_content_type"
11371137

11381138
# run Tomcat (in debug mode if $JPDA_ADDRESS is defined)
11391139

0 commit comments

Comments
 (0)