|
@@ -3,7 +3,13 @@
|
|
# https://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
|
|
# https://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
-for file in $DIR/*.conf.var; do
|
|
|
|
|
|
+export PROD_ONLY=
|
|
|
|
+if [[ $DESECSTACK_E2E_TEST = "TRUE" ]]
|
|
|
|
+then
|
|
|
|
+ export PROD_ONLY='#'
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+for file in $DIR/*.var; do
|
|
# we only replace occurances of the variables specified below as first argument
|
|
# we only replace occurances of the variables specified below as first argument
|
|
- (envsubst '$DESECSTACK_DOMAIN' | envsubst '$CERT_PATH') < $file > $DIR/`basename $file .var`
|
|
|
|
|
|
+ (envsubst '$DESECSTACK_DOMAIN' | envsubst '$CERT_PATH' | envsubst '$PROD_ONLY' ) < $file > $DIR/`basename $file .var`
|
|
done
|
|
done
|