taler-deployment

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

commit 5cfaebcd8da58f09f8d10279b359ba0953d64cb5
parent 92f0066b99ab3152b65f0c1ee3dbc031c8ec4af5
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 15 Dec 2017 12:16:13 +0100

topping the tip reserve via bank transaction

Diffstat:
Mbin/taler-deployment-top-reserve | 24+++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/bin/taler-deployment-top-reserve b/bin/taler-deployment-top-reserve @@ -8,18 +8,20 @@ fi # %N is current nanoseconds. UUID=$(date +"uuid-%N") -# Obtain reserve public key from file -RESERVE=$(gnunet-ecc -p $(taler-config -s PATHS -o TALER_DEPLOYMENT_SHARED -f)/merchant/default-tip.priv) +RESERVE=$(gnunet-ecc -p $( \ + printf "%s%s" \ + $(taler-config -s PATHS -o TALER_DEPLOYMENT_SHARED -f) \ + /merchant/default-tip.priv)) -# Tell the exchange about the 'incoming' wire transfer -# (TODO: shouldn't we rather tell the *bank* (bank/admin/add/incoming) -# to execute the wire transfer, and have the bank tell the exchange? -# This ought to cause the wire auditor to fail!) -taler-exchange-reservemod \ - --add="$TALER_CONFIG_CURRENCY:100.0" \ - --reserve=$RESERVE \ - --sender="{\"bank_uri\":\"https://bank.$TALER_ENV_NAME.taler.net/\",\"account_number\":7,\"type\":\"test\"}" \ - --transfer="{\"uuid\":\"$UUID\"}" +taler-bank-transfer \ + --amount "$TALER_CONFIG_CURRENCY:100.00" \ + --bank "https://bank.$TALER_ENV_NAME.taler.net/" \ + --credit 2 \ # Exchange + --debit 8 \ # Survey + --L "DEBUG" + --pass "x" + --subject $RESERVE + --user "Survey" if ! test 0 = $?; then echo Topping reserve failed!