Skip to content

Commit

Permalink
Merge pull request #11 from nfdi4health/fix/licence
Browse files Browse the repository at this point in the history
fix(k8s.dataverse): Ensures that the licence are created during setup  and custom terms are not allowed.
  • Loading branch information
johannes-darms committed Feb 29, 2024
2 parents 152be69 + dec185c commit 1bce2f8
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion k8s/dataverse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.3
version: 0.3.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions k8s/dataverse/persona/nfdi4health/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ while IFS= read -r TSV; do
echo
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

echo "Creating users"
USERS=$(find $USERS_PATH -maxdepth 1 -iname '*.json')
while IFS= read -r USER; do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"shortDescription": "All rights reserved.",
"iconUrl": "",
"active": true,
"sortOrder": 8
"sortOrder": 7
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"shortDescription": "Creative Commons Attribution-NonCommercial 4.0 International License.",
"iconUrl": "https://licensebuttons.net/l/by-nc/4.0/88x31.png",
"active": true,
"sortOrder": 4
"sortOrder": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"shortDescription": "Creative Commons CC0 1.0 Universal Public Domain Dedication.",
"iconUrl": "https://licensebuttons.net/p/zero/1.0/88x31.png",
"active": true,
"sortOrder": 8
"sortOrder": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"shortDescription": "Not applicable.",
"iconUrl": "",
"active": true,
"sortOrder": 8
"sortOrder": 6
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Not assigned",
"uri": "Not-assigned",
"shortDescription": "Not assigned.",
"iconUrl": "",
"active": true,
"sortOrder": 8
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"shortDescription": "Unknown.",
"iconUrl": "",
"active": true,
"sortOrder": 8
"sortOrder": 9
}

0 comments on commit 1bce2f8

Please sign in to comment.