From be091cfa9e9ec3d57de03800b0d0cb8bfc766791 Mon Sep 17 00:00:00 2001 From: MS Date: Sun, 3 Dec 2023 21:08:23 +0100 Subject: exchange account creation creating it via the convenient non-HTTP based command --- netzbon/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 index 835b99b..f38df00 100755 --- 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 -- cgit v1.2.3