summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-12-03 21:08:23 +0100
committerMS <ms@taler.net>2023-12-03 21:08:23 +0100
commitbe091cfa9e9ec3d57de03800b0d0cb8bfc766791 (patch)
tree50fbb8ca30ac52d4694180f8b0b15a979591b935
parent538ec9a417bfea10ccca48fe0831241203776df1 (diff)
downloaddeployment-be091cfa9e9ec3d57de03800b0d0cb8bfc766791.tar.gz
deployment-be091cfa9e9ec3d57de03800b0d0cb8bfc766791.tar.bz2
deployment-be091cfa9e9ec3d57de03800b0d0cb8bfc766791.zip
exchange account creation
creating it via the convenient non-HTTP based command
-rwxr-xr-xnetzbon/config_libeufin_bank.sh13
1 files changed, 1 insertions, 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