taler-deployment

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

commit fd4cb33030a2a1845ee2ca5e15a73ef044205a2b
parent 3b316fdff72521864bdfdedd2af144cc8eb0ce0f
Author: Antoine A <>
Date:   Wed, 29 Nov 2023 12:00:18 +0000

Fix config_libeufin_bank.sh

Diffstat:
Mnetzbon/config_libeufin_bank.sh | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/netzbon/config_libeufin_bank.sh b/netzbon/config_libeufin_bank.sh @@ -76,6 +76,8 @@ say "DONE" say "Start the bank..." systemctl enable --now libeufin-bank +LIBEUFIN_BANK_URL="${PROTO}://bank.$DOMAIN_NAME" + say "Waiting for bank to be running..." curl --max-time 25 \ --retry-connrefused \ @@ -86,22 +88,21 @@ 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}' +BODY='{"username":"exchange332","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" \ + -O "$LAST_RESPONSE" \ "${LIBEUFIN_BANK_URL}/accounts" say "DONE" -EXCHANGE_IBAN=$(cat "$LAST_RESPONSE" | jq -r .iban) -EXCHANGE_PAYTO="payto://iban/${EXCHANGE_IBAN}/receiver-name=Exchange" +EXCHANGE_PAYTO="$(cat "$LAST_RESPONSE" | jq -r .internal_payto_uri)/receiver-name=Exchange" EXCHANGE_WIRE_GATEWAY_URL="${LIBEUFIN_BANK_URL}/accounts/exchange/taler-wire-gateway/" # Communicating this to the exchange script, as the exchange # needs these for the /keys response. echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO}\"" >>"${MY_DIR}"/config/internal.conf -echo "EXCHANGE_WIRE_GATEWAY_URL=\"${EXCHANGE_WIRE_GATEWAY_URL}\"" >>"${MY_DIR}"/config/internal.conf - +echo "EXCHANGE_WIRE_GATEWAY_URL=\"${EXCHANGE_WIRE_GATEWAY_URL}\"" >>"${MY_DIR}"/config/internal.conf +\ No newline at end of file