taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 86c652814ba2f314a8c6660b19388fd1855ffcc0
parent db48d6f718382d9ea40f0e9fd91ab025228b7922
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sat, 19 Nov 2016 17:55:12 +0100

conf gen

Diffstat:
Abin/taler-deployment-config-generate | 29+++++++++++++++++++++++++++++
Abin/taler-deployment-config-sign | 6++++++
2 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/bin/taler-deployment-config-generate b/bin/taler-deployment-config-generate @@ -0,0 +1,29 @@ +#!/bin/bash + +# (Re-)generate the taler configuration based on environment variables. +# These variables are usually defined in ~/activate. +# Some configuration files still need to be signed with taler-deployment-config-sign. + +set -eu + +base=$HOME + +export PATH="$base/deployment":$PATH + +if [[ -z ${TALER_CONFIG_ENV+x} ]]; + echo "TALER_CONFIG_ENV not set" + exit 1 +fi + +if [[ -z ${TALER_CONFIG_CURRENCY+x} ]]; + echo "TALER_CONFIG_CURRENCY not set" + exit 1 +fi + +exchange_pub=$(gnunet-ecc -p ~/shared-data/exchange/offline-keys/master.priv) + +~/deployment/config/generate-config \ + --exchange-pub "$exchange_pub" \ + --currency "$TALER_CONFIG_CURRENCY" \ + --outdir ~/.config \ + --envname "$TALER_CONFIG_ENV" diff --git a/bin/taler-deployment-config-sign b/bin/taler-deployment-config-sign @@ -0,0 +1,6 @@ +#!/bin/bash + +base=$HOME + +export PATH="$base/deployment":$PATH +