summaryrefslogtreecommitdiff
path: root/bootstrap-bluegreen
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-19 17:31:07 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-19 17:31:07 +0100
commiteb7ff16042a40d7f57799c22d73f341a263cf8e3 (patch)
tree9991b77d36f80597212725e68a5c9a99825b3375 /bootstrap-bluegreen
parent5c69f6365241870306d5b5bd0c8a4c0d2d2addd7 (diff)
downloaddeployment-eb7ff16042a40d7f57799c22d73f341a263cf8e3.tar.gz
deployment-eb7ff16042a40d7f57799c22d73f341a263cf8e3.tar.bz2
deployment-eb7ff16042a40d7f57799c22d73f341a263cf8e3.zip
towards auto-generated config
Diffstat (limited to 'bootstrap-bluegreen')
-rwxr-xr-xbootstrap-bluegreen16
1 files changed, 8 insertions, 8 deletions
diff --git a/bootstrap-bluegreen b/bootstrap-bluegreen
index a5b7eda..11d1de7 100755
--- a/bootstrap-bluegreen
+++ b/bootstrap-bluegreen
@@ -19,7 +19,7 @@
set -eu
usage() {
- echo "Usage: $0 DEPLOYMENT_BASENAME"
+ echo "Usage: $0 ENVNAME"
}
if [ -z ${1+x} ]; then
@@ -27,12 +27,14 @@ if [ -z ${1+x} ]; then
exit 1
fi
-DEPLOYMENT_BASENAME=$1
+ENVNAME=$1
BRANCH=master
-case $DEPLOYMENT_BASENAME in
+CURRENCY=PUDOS
+case $ENVNAME in
demo)
BRANCH=stable
+ CURRENCY=KUDOS
;;
esac
@@ -59,10 +61,8 @@ cat >$HOME/activate <<EOL
#!/bin/bash
export PATH="$HOME/local/bin:$HOME/deployment/bin:\$PATH"
export TALER_CHECKDB="postgres:///talercheck-$USER"
+export TALER_CONFIG_CURRENCY=$CURRENCY
+export TALER_CONFIG_ENV=$ENVNAME
EOL
-mkdir -p $HOME/.config
-ln -sft $HOME/.config "$HOME/deployment/config/$DEPLOYMENT_BASENAME.taler.net/taler.conf"
-ln -sft $HOME/.config "$HOME/deployment/config/$DEPLOYMENT_BASENAME.taler.net/taler"
-
-ln -sf "/home/$DEPLOYMENT_BASENAME/shared-data" "$HOME"
+ln -sf "/home/$ENVNAME/shared-data" "$HOME"