mirror of https://github.com/samply/bridgehead.git
fix bash logic
This commit is contained in:
parent
262b9bd62e
commit
0555786435
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -n "$ENABLE_ADT2FHIR_REST" ]; then
|
function adt2fhirRestSetup() {
|
||||||
log INFO "ADT2FHIR-REST setup detected -- will start adt2fhir-rest API."
|
if [ -n "$ENABLE_ADT2FHIR_REST" ]; then
|
||||||
if [ ! -n "$IDMANAGER_LOCAL_PATIENTLIST_APIKEY" ]; then
|
log INFO "ADT2FHIR-REST setup detected -- will start adt2fhir-rest API."
|
||||||
log ERROR "Missing ID-Management Module! Fix this by setting up ID Management:"
|
if [ ! -n "$IDMANAGER_LOCAL_PATIENTLIST_APIKEY" ]; then
|
||||||
exit 1;
|
log ERROR "Missing ID-Management Module! Fix this by setting up ID Management:"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
OVERRIDE+=" -f ./$PROJECT/modules/adt2fhir-rest-compose.yml"
|
||||||
|
LOCAL_SALT="$(echo \"local-random-salt\" | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||||
fi
|
fi
|
||||||
OVERRIDE+=" -f ./$PROJECT/modules/adt2fhir-rest-compose.yml"
|
}
|
||||||
LOCAL_SALT="$(echo \"local-random-salt\" | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function nngmSetup() {
|
if [ -n "$NNGM_CTS_APIKEY" ]; then
|
||||||
if [ -n "$NNGM_CTS_APIKEY" ]; then
|
log INFO "nNGM setup detected -- will start nNGM Connector."
|
||||||
log INFO "nNGM setup detected -- will start nNGM Connector."
|
OVERRIDE+=" -f ./$PROJECT/modules/nngm-compose.yml"
|
||||||
OVERRIDE+=" -f ./$PROJECT/modules/nngm-compose.yml"
|
fi
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue