[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: setup conversion figures
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: setup conversion figures |
Date: |
Wed, 06 Dec 2023 00:27:43 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new dfc22fd setup conversion figures
dfc22fd is described below
commit dfc22fd6e910f4c1232156e669fbb6ba107cbcec
Author: MS <ms@taler.net>
AuthorDate: Wed Dec 6 00:27:38 2023 +0100
setup conversion figures
---
netzbon/config_libeufin_bank.sh | 29 +++++++++++++++++++++++++++++
netzbon/setup-exchange.sh | 2 +-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/netzbon/config_libeufin_bank.sh b/netzbon/config_libeufin_bank.sh
index ad3d66d..2e4dd76 100755
--- a/netzbon/config_libeufin_bank.sh
+++ b/netzbon/config_libeufin_bank.sh
@@ -97,3 +97,32 @@ fi
say "Start the bank..."
systemctl enable --now libeufin-bank
+
+say "Waiting for the bank (/config)..."
+curl --max-time 2 \
+ --retry-all-errors \
+ --retry-delay 1 \
+ --retry 10 \
+ "${EXCHANGE_BASE_URL}"config &>/dev/null
+say "DONE"
+curl -i ${PROTO}://bank.${DOMAIN_NAME}/config \
+
+say "Setting conversion figures..."
+
+-u "admin:${BANK_ADMIN_PASSWORD}" \
+-H 'Content-Type: application/json; charset=utf-8' \
+--data-binary @- << EOF
+{
+ "cashin_ratio": "1",
+ "cashin_fee": "${CURRENCY}:0",
+ "cashin_tiny_amount": "${CURRENCY}:0",
+ "cashin_rounding_mode": "nearest",
+ "cashin_min_amount": "${FIAT_CURRENCY}:1",
+ "cashout_ratio": "1",
+ "cashout_fee": "${FIAT_CURRENCY}:0",
+ "cashout_tiny_amount": "${FIAT_CURRENCY}:0",
+ "cashout_rounding_mode": "zero",
+ "cashout_min_amount": "${CURRENCY}:1"
+}
+EOF
+say "DONE"
diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh
index cb7de54..4061e78 100755
--- a/netzbon/setup-exchange.sh
+++ b/netzbon/setup-exchange.sh
@@ -186,7 +186,7 @@ systemctl enable --now taler-exchange.target
say "Waiting for exchange HTTP service (/config)..."
curl --max-time 2 \
- --retry-connrefused \
+ --retry-all-errors \
--retry-delay 1 \
--retry 10 \
"${EXCHANGE_BASE_URL}"config &>/dev/null
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: setup conversion figures,
gnunet <=