Skip to content

Commit

Permalink
Merge pull request #16 from nfdi4health/feat/dv-6-2
Browse files Browse the repository at this point in the history
feat(k8s.dataverse): update to Dataverse 6.2
  • Loading branch information
johannes-darms authored Apr 10, 2024
2 parents 9cfb5fa + a55a976 commit f5e089e
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 167 deletions.
9 changes: 5 additions & 4 deletions k8s/dataverse/persona/nfdi4health/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ while IFS= read -r TSV; do
done <<< "${TSVS}"

echo "Disable custom terms of use"
curl -s -H "X-Dataverse-key:$API_TOKEN" -X PUT -d false $DATAVERSE_URL/aapi/admin/settings/:AllowCustomTermsOfUse
curl -s -H "X-Dataverse-key:$API_TOKEN" -X PUT -d false "${DATAVERSE_URL}/api/admin/settings/:AllowCustomTermsOfUse"
echo

echo "Creating users"
USERS=$(find $USERS_PATH -maxdepth 1 -iname '*.json')
Expand Down Expand Up @@ -87,9 +88,9 @@ while IFS= read -r DATAVERSE; do
curl -s -H "X-Dataverse-key:$API_TOKEN" -X POST $DATAVERSE_URL/api/dataverses/$DATAVERSE_ID/actions/:publish
echo

echo "Adding @dataverseAdmin as admin to dataverse $PARENT_DATAVERSE/$DATAVERSE_ID:"
curl -s -H "X-Dataverse-key:$API_TOKEN" -X POST -H "Content-Type: application/json" $DATAVERSE_URL/api/dataverses/$DATAVERSE_ID/assignments -d '{"assignee": "@dataverseAdmin", "role": "admin"}'
echo
# echo "Adding @dataverseAdmin as admin to dataverse $PARENT_DATAVERSE/$DATAVERSE_ID:"
# curl -s -H "X-Dataverse-key:$API_TOKEN" -X POST -H "Content-Type: application/json" $DATAVERSE_URL/api/dataverses/$DATAVERSE_ID/assignments -d '{"assignee": "@dataverseAdmin", "role": "admin"}'
# echo

echo "Adding :authenticated-users as dataset creators to dataverse $PARENT_DATAVERSE/$DATAVERSE_ID:"
curl -s -H "X-Dataverse-key:$API_TOKEN" -X POST -H "Content-Type: application/json" $DATAVERSE_URL/api/dataverses/$DATAVERSE_ID/assignments -d '{"assignee": ":authenticated-users", "role": "dsContributor"}'
Expand Down
Loading

0 comments on commit f5e089e

Please sign in to comment.