mirror of https://github.com/samply/bridgehead.git
Fix variable visibility
This commit is contained in:
parent
c4018aae08
commit
5ba1a1a820
|
@ -7,17 +7,17 @@ if [ "${ENABLE_ERIC}" == "true" ]; then
|
||||||
# The environment needs to be defined in /etc/bridgehead
|
# The environment needs to be defined in /etc/bridgehead
|
||||||
case "$ENVIRONMENT" in
|
case "$ENVIRONMENT" in
|
||||||
"production")
|
"production")
|
||||||
ERIC_BROKER_ID=broker.bbmri.samply.de
|
export ERIC_BROKER_ID=broker.bbmri.samply.de
|
||||||
ERIC_ROOT_CERT=eric
|
export ERIC_ROOT_CERT=eric
|
||||||
;;
|
;;
|
||||||
"test")
|
"test")
|
||||||
ERIC_BROKER_ID=broker-test.bbmri-test.samply.de
|
export ERIC_BROKER_ID=broker-test.bbmri-test.samply.de
|
||||||
ERIC_ROOT_CERT=eric.test
|
export ERIC_ROOT_CERT=eric.test
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
||||||
ERIC_BROKER_ID=broker.bbmri.samply.de
|
export ERIC_BROKER_ID=broker.bbmri.samply.de
|
||||||
ERIC_ROOT_CERT=eric
|
export ERIC_ROOT_CERT=eric
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -7,17 +7,17 @@ if [ "${ENABLE_GBN}" == "true" ]; then
|
||||||
# The environment needs to be defined in /etc/bridgehead
|
# The environment needs to be defined in /etc/bridgehead
|
||||||
case "$ENVIRONMENT" in
|
case "$ENVIRONMENT" in
|
||||||
"production")
|
"production")
|
||||||
GBN_BROKER_ID=broker.bbmri.de
|
export GBN_BROKER_ID=broker.bbmri.de
|
||||||
GBN_ROOT_CERT=gbn
|
export GBN_ROOT_CERT=gbn
|
||||||
;;
|
;;
|
||||||
"test")
|
"test")
|
||||||
GBN_BROKER_ID=broker.test.bbmri.de
|
export GBN_BROKER_ID=broker.test.bbmri.de
|
||||||
GBN_ROOT_CERT=gbn.test
|
export GBN_ROOT_CERT=gbn.test
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
report_error 6 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
||||||
GBN_BROKER_ID=broker.bbmri.de
|
export GBN_BROKER_ID=broker.bbmri.de
|
||||||
GBN_ROOT_CERT=gbn
|
export GBN_ROOT_CERT=gbn
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -72,14 +72,14 @@ loadVars() {
|
||||||
|
|
||||||
case "$ENVIRONMENT" in
|
case "$ENVIRONMENT" in
|
||||||
"production")
|
"production")
|
||||||
FOCUS_TAG=main
|
export FOCUS_TAG=main
|
||||||
;;
|
;;
|
||||||
"test")
|
"test")
|
||||||
FOCUS_TAG=develop
|
export FOCUS_TAG=develop
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
report_error 7 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
report_error 7 "Environment \"$ENVIRONMENT\" is unknown. Assuming production. FIX THIS!"
|
||||||
FOCUS_TAG=main
|
export FOCUS_TAG=main
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue