summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-12-03 21:12:46 +0100
committerMS <ms@taler.net>2023-12-03 21:12:46 +0100
commit92872f718b50d35cbd1c29518c798ddeef585cfc (patch)
tree15007d29e760db8ae2ee9eff9b1452fd05468ece
parentbe091cfa9e9ec3d57de03800b0d0cb8bfc766791 (diff)
downloaddeployment-92872f718b50d35cbd1c29518c798ddeef585cfc.tar.gz
deployment-92872f718b50d35cbd1c29518c798ddeef585cfc.tar.bz2
deployment-92872f718b50d35cbd1c29518c798ddeef585cfc.zip
follow-up
-rwxr-xr-xnetzbon/config_libeufin_bank.sh15
1 files changed, 2 insertions, 13 deletions
diff --git a/netzbon/config_libeufin_bank.sh b/netzbon/config_libeufin_bank.sh
index f38df00..a0c2c3e 100755
--- 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