mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 03:40:14 +02:00
Modularize DNPM components
This commit is contained in:
17
minimal/modules/dnpm-setup.sh
Normal file
17
minimal/modules/dnpm-setup.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -n "${ENABLE_DNPM}" ]; then
|
||||
log INFO "DNPM setup detected (Beam.Connect) -- will start Beam.Connect for DNPM."
|
||||
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose-beamconnect.yml"
|
||||
|
||||
# Set variables required for Beam-Connect
|
||||
DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||
DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
||||
DNPM_DISCOVERY_URL="https://dnpm.medizin.uni-tuebingen.de/sites"
|
||||
|
||||
# Optionally, start bwhc as well. This is currently only experimental
|
||||
if [ -n "${ENABLE_DNPM_BWHC}" ]; then
|
||||
log INFO "DNPM setup detected (with Frontend/Backend) -- will start BWHC Frontend/Backend. This is highly experimental!"
|
||||
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose-bwhc.yml"
|
||||
fi
|
||||
fi
|
Reference in New Issue
Block a user