2022-10-26 11:50:21 +02:00
#!/bin/bash
function nngmSetup( ) {
if [ -n " $NNGM_CTS_APIKEY " ] ; then
log INFO "nNGM setup detected -- will start nNGM Connector."
2022-11-08 10:54:51 +01:00
OVERRIDE += " -f ./ $PROJECT /nngm-compose.yml "
2022-10-26 11:50:21 +02:00
fi
2022-10-28 10:37:51 +02:00
CONNECTOR_POSTGRES_PASSWORD = " $( 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) "
2022-10-26 11:50:21 +02:00
}
2022-12-02 15:38:33 +01:00
function mtbaSetup( ) {
# TODO: Check if ID-Management Module is activated!
if [ -n " $ENABLE_MTBA " ] ; then
log INFO "MTBA setup detected -- will start MTBA Service and CBioPortal."
2022-12-16 15:01:04 +01:00
if [ ! -n " $IDMANAGER_UPLOAD_APIKEY " ] ; then
2022-12-02 15:38:33 +01:00
log ERROR "Detected MTBA Module configuration but ID-Management Module seems not to be configured!"
exit 1;
fi
OVERRIDE += " -f ./ $PROJECT /mtba-compose.yml "
fi
}