2022-10-26 11:50:21 +02:00
|
|
|
#!/bin/bash
|
2023-05-04 15:18:30 +02:00
|
|
|
##nNGM vars:
|
|
|
|
#NNGM_MAGICPL_APIKEY
|
|
|
|
#NNGM_CTS_APIKEY
|
|
|
|
#NNGM_CRYPTKEY
|
2022-10-26 11:50:21 +02:00
|
|
|
|
|
|
|
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
|
2023-05-04 15:18:30 +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
|
|
|
|
}
|