summaryrefslogtreecommitdiff
path: root/regional-currency/setup-exchange.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regional-currency/setup-exchange.sh')
-rwxr-xr-xregional-currency/setup-exchange.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/regional-currency/setup-exchange.sh b/regional-currency/setup-exchange.sh
index 8618f07..e1de3c1 100755
--- a/regional-currency/setup-exchange.sh
+++ b/regional-currency/setup-exchange.sh
@@ -205,4 +205,14 @@ curl -sS --max-time 2 \
--retry 10 \
"${EXCHANGE_BASE_URL}"keys &>> setup.log
+if test ${DO_CONVERSION} == y; then
+ say "Conversion account setup..."
+
+ sudo -i -u taler-exchange-offline taler-exchange-offline \
+ enable-account \
+ "${CONVERSION_PAYTO}" \
+ conversion-url "${PROTO}://bank.$DOMAIN/conversion-info/" \
+ upload &>> setup.log
+fi
+
say "Exchange setup finished"