Make sure copy works and the correct owner is set

This commit is contained in:
janskiba 2023-09-15 14:09:06 +00:00 committed by juarez
parent 785dff29bf
commit 4a4a1d76a7
1 changed files with 2 additions and 2 deletions

View File

@ -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