Fix variable visibility

This commit is contained in:
Martin Lablans 2024-01-09 11:43:57 +01:00
parent c4018aae08
commit 5ba1a1a820
3 changed files with 15 additions and 15 deletions

View File

@ -7,17 +7,17 @@ if [ "${ENABLE_ERIC}" == "true" ]; then
# The environment needs to be defined in /etc/bridgehead
case "$ENVIRONMENT" in
"production")
ERIC_BROKER_ID=broker.bbmri.samply.de
ERIC_ROOT_CERT=eric
export ERIC_BROKER_ID=broker.bbmri.samply.de
export ERIC_ROOT_CERT=eric
;;
"test")
ERIC_BROKER_ID=broker-test.bbmri-test.samply.de
ERIC_ROOT_CERT=eric.test
export ERIC_BROKER_ID=broker-test.bbmri-test.samply.de
export ERIC_ROOT_CERT=eric.test
;;
*)
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
ERIC_BROKER_ID=broker.bbmri.samply.de
ERIC_ROOT_CERT=eric
export ERIC_BROKER_ID=broker.bbmri.samply.de
export ERIC_ROOT_CERT=eric
;;
esac

View File

@ -7,17 +7,17 @@ if [ "${ENABLE_GBN}" == "true" ]; then
# The environment needs to be defined in /etc/bridgehead
case "$ENVIRONMENT" in
"production")
GBN_BROKER_ID=broker.bbmri.de
GBN_ROOT_CERT=gbn
export GBN_BROKER_ID=broker.bbmri.de
export GBN_ROOT_CERT=gbn
;;
"test")
GBN_BROKER_ID=broker.test.bbmri.de
GBN_ROOT_CERT=gbn.test
export GBN_BROKER_ID=broker.test.bbmri.de
export GBN_ROOT_CERT=gbn.test
;;
*)
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
GBN_BROKER_ID=broker.bbmri.de
GBN_ROOT_CERT=gbn
export GBN_BROKER_ID=broker.bbmri.de
export GBN_ROOT_CERT=gbn
;;
esac

View File

@ -72,14 +72,14 @@ loadVars() {
case "$ENVIRONMENT" in
"production")
FOCUS_TAG=main
export FOCUS_TAG=main
;;
"test")
FOCUS_TAG=develop
export FOCUS_TAG=develop
;;
*)
report_error 7 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
FOCUS_TAG=main
export FOCUS_TAG=main
;;
esac
}