summaryrefslogtreecommitdiff
path: root/bootstrap-bluegreen
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-03-14 17:04:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-03-14 17:05:07 +0100
commitea789d2df4c4b63bed298b97f9274786650b264e (patch)
tree27f18ebf6f8cf47e60e7658814ed172b65abd600 /bootstrap-bluegreen
parent587c2023fcdefa5ec18c7787769e9bfcfe1f5604 (diff)
downloaddeployment-ea789d2df4c4b63bed298b97f9274786650b264e.tar.gz
deployment-ea789d2df4c4b63bed298b97f9274786650b264e.tar.bz2
deployment-ea789d2df4c4b63bed298b97f9274786650b264e.zip
environment URLs
Diffstat (limited to 'bootstrap-bluegreen')
-rwxr-xr-xbootstrap-bluegreen18
1 files changed, 17 insertions, 1 deletions
diff --git a/bootstrap-bluegreen b/bootstrap-bluegreen
index eb83874..de765b7 100755
--- a/bootstrap-bluegreen
+++ b/bootstrap-bluegreen
@@ -19,7 +19,7 @@
set -eu
usage() {
- echo "Usage: $0 ENVNAME"
+ echo "Usage: $0 ENVNAME ENVCOLOR"
}
if [ -z ${1+x} ]; then
@@ -27,7 +27,13 @@ if [ -z ${1+x} ]; then
exit 1
fi
+if [ -z ${2+x} ]; then
+ usage
+ exit 1
+fi
+
ENVNAME=$1
+ENVCOLOR=$2
BRANCH=master
CURRENCY=PUDOS
@@ -76,7 +82,17 @@ function taler-exchange-keyup () {
export PATH="$HOME/deployment/bin:$HOME/local/bin:\$PATH"
export TALER_CHECKDB="postgres:///talercheck-$USER"
export TALER_CONFIG_CURRENCY=$CURRENCY
+
+# DEPRECATED ALIAS!
export TALER_CONFIG_ENV=$ENVNAME
+
+export TALER_ENV_NAME=$ENVNAME
+export TALER_ENV_COLOR=$ENVCOLOR
+export TALER_ENV_URL_INTRO="https://$ENVNAME.taler.net/"
+export TALER_ENV_URL_BANK="https://bank.$ENVNAME.taler.net/"
+export TALER_ENV_URL_MERCHANT_BLOG="https://shop.$ENVNAME.taler.net/"
+export TALER_ENV_URL_MERCHANT_DONATIONS="https://donations.$ENVNAME.taler.net/$env/"
+export TALER_ENV_URL_AUDITOR="https://auditor.$ENVNAME.taler.net/"
EOL
ln -sf "/home/$ENVNAME/shared-data" "$HOME"