taler-deployment

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

commit be091cfa9e9ec3d57de03800b0d0cb8bfc766791
parent 538ec9a417bfea10ccca48fe0831241203776df1
Author: MS <ms@taler.net>
Date:   Sun,  3 Dec 2023 21:08:23 +0100

exchange account creation

creating it via the convenient non-HTTP based command

Diffstat:
Mnetzbon/config_libeufin_bank.sh | 13+------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/netzbon/config_libeufin_bank.sh b/netzbon/config_libeufin_bank.sh @@ -108,19 +108,8 @@ curl --max-time 25 \ say "DONE" say "Create exchange account..." -LAST_RESPONSE=$(mktemp -p "${TMPDIR:-/tmp}" test_response.conf-XXXXXX) -BODY='{"username":"exchange","password":"'${BANK_EXCHANGE_PASSWORD}'","name":"Exchange","is_taler_exchange":true}' -wget \ - --method="POST" \ - --http-user="admin" \ - --http-password="${BANK_ADMIN_PASSWORD}" \ - --header='Content-type: application/json' \ - --body-data="${BODY}" \ - -O "$LAST_RESPONSE" \ - "http://localhost:$BANK_PORT/accounts" -say "DONE" -EXCHANGE_PAYTO="$(cat "$LAST_RESPONSE" | jq -r .internal_payto_uri)/receiver-name=Exchange" +EXCHANGE_PAYTO="$(libeufin-bank create-account '{"username":"exchange","password":"'${BANK_EXCHANGE_PASSWORD}'","name":"Exchange","is_taler_exchange":true}')?receiver-name=Exchange" EXCHANGE_WIRE_GATEWAY_URL="${PROTO}://bank.$DOMAIN_NAME/accounts/exchange/taler-wire-gateway/" # Communicating this to the exchange script, as the exchange