graphdb: Update api usage for 10.x

This commit updates the usage of the GraphDB API for version 10.0 or
later.
This commit is contained in:
Tom Wiesing 2022-07-11 15:29:07 +02:00
parent 07755aacf5
commit 18c4957e30
No known key found for this signature in database
5 changed files with 9 additions and 9 deletions

View file

@ -44,12 +44,11 @@ GRAPHDB_PASSWORD="$(randompw)"
# Create the user and grant them access to the creatd database.
log_info " => Creating GraphDB user '$GRAPHDB_USER'"
load_template "repository/graphdb-user.json" "GRAPHDB_USER" "${GRAPHDB_USER}" "GRAPHDB_REPO" "${GRAPHDB_REPO}" | \
load_template "repository/graphdb-user.json" "GRAPHDB_USER" "${GRAPHDB_USER}" "GRAPHDB_REPO" "${GRAPHDB_REPO}" "GRAPHDB_PASSWORD" "${GRAPHDB_PASSWORD}" | \
curl -X POST $GRAPHDB_AUTH_FLAGS \
"http://127.0.0.1:7200/rest/security/user/${GRAPHDB_USER}" \
"http://127.0.0.1:7200/rest/security/users/${GRAPHDB_USER}" \
--header 'Content-Type: application/json' \
--header 'Accept: text/plain' \
--header "X-GraphDB-Password: $GRAPHDB_PASSWORD" \
-d @-
log_info " => Creating local directory structure at '$INSTANCE_BASE_DIR'"