commit 3fe2a6230de1f32f5fc04a5f3b1f0ccc3908fa5f
parent 37b55be716585d8dbb3d9cc508861d6563c68340
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 4 Mar 2023 16:13:33 +0100
tolerate if account exists
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/netzbon/config_launch_libeufin.sh b/netzbon/config_launch_libeufin.sh
@@ -113,7 +113,7 @@ export LIBEUFIN_SANDBOX_USERNAME="exchange-at-sandbox"
export LIBEUFIN_SANDBOX_PASSWORD=$SANDBOX_EXCHANGE_PASSWORD
libeufin-cli \
sandbox --sandbox-url ${SANDBOX_URL} \
- demobank register
+ demobank register || true
echo "DONE"
echo -n "Getting the exchange IBAN and Payto URI..."
@@ -128,9 +128,10 @@ 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
+export EXCHANGE_PAYTO
echo -n "Setting the default exchange at Sandbox..."
-libeufin-sandbox default-exchange https://exchange.$DOMAIN_NAME/ $EXCHANGE_PAYTO
+libeufin-sandbox default-exchange "https://exchange.$DOMAIN_NAME/" $EXCHANGE_PAYTO
echo "DONE"
export LIBEUFIN_SANDBOX_USERNAME="admin"