taler-deployment

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

commit 718881f9ed5f778dfc9a5d5ff8bf6bc2af6df320
parent 548aa65118a36072b4e0befb2a9cd22caa5c4bbb
Author: MS <ms@taler.net>
Date:   Sat,  4 Mar 2023 15:05:51 +0100

Netzbon setup.

Adding missing parts in the Libeufin preparation
script.  Namely, setting the default exchange and
sharing the exchange IBAN in the environment.

Diffstat:
Mnetzbon/config_launch_libeufin.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/netzbon/config_launch_libeufin.sh b/netzbon/config_launch_libeufin.sh @@ -112,6 +112,22 @@ libeufin-cli \ demobank register echo "DONE" +echo -n "Getting the exchange IBAN and Payto URI..." +EXCHANGE_DETAILS=$(libeufin-cli \ + sandbox --sandbox-url http://localhost:5000/ \ + demobank info) +echo "DONE" + +EXCHANGE_IBAN=$(echo $EXCHANGE_DETAILS | jq -r .iban) +EXCHANGE_PAYTO=$(echo $EXCHANGE_DETAILS | jq -r .paytoUri) + +# Communicating this to the exchange script, as the exchange +# needs it for the /wire response. +export EXCHANGE_IBAN + +echo -n "Setting the default exchange at Sandbox..." +libeufin-sandbox default-exchange https://exchange.$DOMAIN_NAME/ $EXCHANGE_PAYTO +echo "DONE" export LIBEUFIN_SANDBOX_USERNAME="admin" export LIBEUFIN_SANDBOX_PASSWORD=$SANDBOX_ADMIN_PASSWORD