commit 38441d5b7273d26d28d5cd84fc3980722a28703a
parent 0f773715761445590cf40f2295366da67acba4d1
Author: ms <ms@taler.net>
Date: Wed, 22 Sep 2021 21:15:25 +0200
tweak config _before_ use (euFin deployment)
Diffstat:
1 file changed, 20 insertions(+), 19 deletions(-)
diff --git a/bin/taler-deployment-prepare-with-eufin b/bin/taler-deployment-prepare-with-eufin
@@ -51,6 +51,25 @@ function generate_config() {
--outdir "$HOME/.config" \
--envname "$TALER_ENV_NAME" \
--frontends-apitoken "$TALER_ENV_FRONTENDS_APITOKEN"
+
+# For now, override what the non-euFin deployment put
+# in the configuration. Later, the three values below
+# will be specified by the "config generator".
+taler-config -s exchange-accountcredentials-1 \
+ -o WIRE_GATEWAY_URL \
+ -V "${FACADE_URL}"
+
+taler-config -s exchange-accountcredentials-1 \
+ -o USERNAME \
+ -V "${EXCHANGE_NEXUS_USERNAME}"
+
+taler-config -s exchange-accountcredentials-1 \
+ -o PASSWORD \
+ -V "${EXCHANGE_NEXUS_PASSWORD}"
+
+taler-config -s exchange-account-1 \
+ -o PAYTO_URI \
+ -V "payto://sepa/bank.${TALER_ENV_NAME}.taler.net/eufin/sandbox/$IBAN_EXCHANGE"
}
##
@@ -127,6 +146,7 @@ echo " OK"
##
## Step 3: Set up the exchange key material
##
+
echo -n "Setup exchange's key material.."
taler-deployment-arm -s
@@ -336,25 +356,6 @@ FACADE_URL=$(libeufin-cli facades list | jq .facades[0].baseUrl | tr -d \")
taler-deployment-arm -k libeufin-nexus
taler-deployment-arm -k libeufin-sandbox
-# For now, override what the non-euFin deployment put
-# in the configuration. Later, the three values below
-# will be specified by the "config generator".
-taler-config -s exchange-accountcredentials-1 \
- -o WIRE_GATEWAY_URL \
- -V "${FACADE_URL}"
-
-taler-config -s exchange-accountcredentials-1 \
- -o USERNAME \
- -V "${EXCHANGE_NEXUS_USERNAME}"
-
-taler-config -s exchange-accountcredentials-1 \
- -o PASSWORD \
- -V "${EXCHANGE_NEXUS_PASSWORD}"
-
-taler-config -s exchange-account-1 \
- -o PAYTO_URI \
- -V "payto://sepa/bank.${TALER_ENV_NAME}.taler.net/eufin/sandbox/$IBAN_EXCHANGE"
-
##
## Step 5: Adjust some permissions
##