commit e08e058f8640e3dad7864cd7c5554be32d90c1a5 parent eb971fe4493c9f77f26f3574c44806b47a048196 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Sat, 8 Jun 2019 19:43:35 +0200 wrap wire-signer in a script Diffstat:
| A | bin/taler-deployment-sign | | | 24 | ++++++++++++++++++++++++ |
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/bin/taler-deployment-sign b/bin/taler-deployment-sign @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +# Sign exchange wire response + +set -eu + +if test -z $TALER_CONFIG_ENV; then + echo Please run 'source $HOME/activate' first. + exit 1 +fi + +if ! test -f $HOME/.config/taler.conf; then + echo "Please generate config file first (taler-deployment-config-generate)" + exit 1 +fi + +if ! test -f $(taler-config -s paths -o taler_deployment_shared -f)/hier.lock; then + echo "shared-data/ hier not made yet, please run 'taler-deployment-shared-data' first" + exit 1 +fi + +rm -f $WIRE_RESPONSE +taler-exchange-sign +chmod 070 $WIRE_RESPONSE