summaryrefslogtreecommitdiff
path: root/regional-currency/setup-libeufin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regional-currency/setup-libeufin.sh')
-rwxr-xr-xregional-currency/setup-libeufin.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/regional-currency/setup-libeufin.sh b/regional-currency/setup-libeufin.sh
index efbd714..ff64d6c 100755
--- a/regional-currency/setup-libeufin.sh
+++ b/regional-currency/setup-libeufin.sh
@@ -95,14 +95,11 @@ echo "settings = { bankName: \"${BANK_NAME}\" }" >/etc/libeufin/settings.js
say "Create exchange account..."
if test -z "${EXCHANGE_PAYTO:-}"; then
+ # FIXME create-account should have a way to update the password if the account already exists
EXCHANGE_PAYTO_NEW="$(sudo -u libeufin-bank libeufin-bank create-account -c /etc/libeufin/libeufin-bank.conf --username exchange --password "${BANK_EXCHANGE_PASSWORD}" --name Exchange --exchange 2>> setup.log)?receiver-name=Exchange"
- echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO_NEW}\"" >> config/internal.conf
+ echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO_NEW}\"" >> config/user.conf
fi
-if test -z "${EXCHANGE_WIRE_GATEWAY_URL:-}"; then
- EXCHANGE_WIRE_GATEWAY_URL_NEW="${PROTO}://bank.$DOMAIN_NAME/accounts/exchange/taler-wire-gateway/"
- echo "EXCHANGE_WIRE_GATEWAY_URL=\"${EXCHANGE_WIRE_GATEWAY_URL_NEW}\"" >> config/internal.conf
-fi
say "Start the bank..."
systemctl enable libeufin-bank &>> setup.log