From 647630314a05f994b1e3dc7c90a88456e5870d83 Mon Sep 17 00:00:00 2001 From: janskiba Date: Fri, 15 Sep 2023 14:09:06 +0000 Subject: [PATCH] Make sure copy works and the correct owner is set --- ccp/modules/datashield-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccp/modules/datashield-setup.sh b/ccp/modules/datashield-setup.sh index c48a112..8421ea2 100644 --- a/ccp/modules/datashield-setup.sh +++ b/ccp/modules/datashield-setup.sh @@ -9,7 +9,6 @@ if [ "$ENABLE_DATASHIELD" == true ]; then mkdir -p /tmp/bridgehead/ chown -R bridgehead:docker /tmp/bridgehead/ openssl req -x509 -newkey rsa:4096 -nodes -keyout /tmp/bridgehead/opal-key.pem -out /tmp/bridgehead/opal-cert.pem -days 3650 -subj "/CN=${HOST:-opal}/C=DE" - chown -R bridgehead:docker /tmp/bridgehead/ chmod g+r /tmp/bridgehead/opal-key.pem fi mkdir -p /tmp/bridgehead/opal-map @@ -19,5 +18,6 @@ if [ "$ENABLE_DATASHIELD" == true ]; then "internal": "opal:8080", "allowed": [$input.sites[].id | "datashield-connect.\(.).broker.ccp-it.dktk.dkfz.de"] }' > /tmp/bridgehead/opal-map/local.json - cp ./$PROJECT/modules/datashield-mappings.json /tmp/bridgehead/opal-map/central.json + cp -f ./$PROJECT/modules/datashield-mappings.json /tmp/bridgehead/opal-map/central.json + chown -R bridgehead:docker /tmp/bridgehead/ fi