diff options
-rwxr-xr-x | netzbon/config_libeufin_nexus.sh | 6 | ||||
-rwxr-xr-x | netzbon/withdraw.sh | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/netzbon/config_libeufin_nexus.sh b/netzbon/config_libeufin_nexus.sh index 5d95008..ae69543 100755 --- a/netzbon/config_libeufin_nexus.sh +++ b/netzbon/config_libeufin_nexus.sh @@ -9,6 +9,7 @@ set -eu source functions.sh +source config/user.conf # In order to reach the bank, the setup step needs to provide # the section [ebics-setup]. This is a manual process that is @@ -20,6 +21,11 @@ then echo -e "[nexus-postgres]\n"\ >> /etc/libeufin/libeufin-nexus.conf fi +if ! taler-config -s "nexus-ebics" -o code &> /dev/null + taler-config -s nexus-ebics -o currency \ + -V $CURRENCY /etc/libeufin/libeufin-nexus.conf +fi + say "Setting up libeufin-nexus database" libeufin-nexus-dbconfig diff --git a/netzbon/withdraw.sh b/netzbon/withdraw.sh index c0d6fcf..2f1b33b 100755 --- a/netzbon/withdraw.sh +++ b/netzbon/withdraw.sh @@ -18,6 +18,7 @@ CAMT_054=$(sed \ -e "s/DEBTOR_IBAN/$DEBTOR_IBAN/" \ incoming_template.xml) -echo "$CAMT_054" | libeufin-nexus ebics-fetch -c $NEXUS_CONFIG_FILE --import +echo "$CAMT_054" | sudo -i -u libeufin-nexus \ + libeufin-nexus ebics-fetch -c $NEXUS_CONFIG_FILE --import taler-wallet-cli run-until-done |