From a8e8c7632186f760c5d0b45745764f4b627606ef Mon Sep 17 00:00:00 2001 From: Vera Clemens Date: Fri, 9 Aug 2024 14:49:49 +0200 Subject: [PATCH] fix(k8s.dataverse): set superuser status in init script --- k8s/dataverse/Chart.yaml | 2 +- k8s/dataverse/persona/nfdi4health/init.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/k8s/dataverse/Chart.yaml b/k8s/dataverse/Chart.yaml index ab85acb..5171658 100644 --- a/k8s/dataverse/Chart.yaml +++ b/k8s/dataverse/Chart.yaml @@ -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.5.1 +version: 0.5.2 # 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 diff --git a/k8s/dataverse/persona/nfdi4health/init.sh b/k8s/dataverse/persona/nfdi4health/init.sh index 167d4c3..5c7d609 100644 --- a/k8s/dataverse/persona/nfdi4health/init.sh +++ b/k8s/dataverse/persona/nfdi4health/init.sh @@ -26,6 +26,10 @@ echo "Setting DOI provider to FAKE" curl -s -H "X-Dataverse-key:$API_TOKEN" -X PUT -d FAKE $DATAVERSE_URL/api/admin/settings/:DoiProvider echo +echo "Setting superuser status" +curl -X POST "${DATAVERSE_URL}/api/admin/superuser/dataverseAdmin" +echo + echo "Publishing root dataverse" curl -X POST "${DATAVERSE_URL}/api/dataverses/:root/actions/:publish" echo