commit 92872f718b50d35cbd1c29518c798ddeef585cfc
parent be091cfa9e9ec3d57de03800b0d0cb8bfc766791
Author: MS <ms@taler.net>
Date: Sun, 3 Dec 2023 21:12:46 +0100
follow-up
Diffstat:
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/netzbon/config_libeufin_bank.sh b/netzbon/config_libeufin_bank.sh
@@ -95,20 +95,7 @@ echo "settings = { bankName: \"${BANK_NAME}\" }"
>/etc/libeufin/settings.js
say "DONE"
-
-say "Start the bank..."
-systemctl enable --now libeufin-bank
-
-say "Waiting for bank to be running..."
-curl --max-time 25 \
- --retry-all-errors \
- --retry-delay 3 \
- --retry 10 \
- "http://localhost:$BANK_PORT" &>/dev/null
-say "DONE"
-
say "Create exchange account..."
-
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/"
@@ -116,3 +103,5 @@ EXCHANGE_WIRE_GATEWAY_URL="${PROTO}://bank.$DOMAIN_NAME/accounts/exchange/taler-
# needs these for the /keys response.
echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO}\"" >> config/internal.conf
echo "EXCHANGE_WIRE_GATEWAY_URL=\"${EXCHANGE_WIRE_GATEWAY_URL}\"" >> config/internal.conf
+say "Start the bank..."
+systemctl enable --now libeufin-bank