summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-12-03 17:30:41 +0100
committerMS <ms@taler.net>2023-12-03 17:30:41 +0100
commit61d65a19a478500904c5513226909a562c999e40 (patch)
treef5afc96c89b568ba1efe5985294c957337447c16
parent31fff46795e0a547406942f6d03219dc67582c3c (diff)
downloaddeployment-61d65a19a478500904c5513226909a562c999e40.tar.gz
deployment-61d65a19a478500904c5513226909a562c999e40.tar.bz2
deployment-61d65a19a478500904c5513226909a562c999e40.zip
follow-up
-rwxr-xr-xnetzbon/config_libeufin_nexus.sh20
1 files changed, 6 insertions, 14 deletions
diff --git a/netzbon/config_libeufin_nexus.sh b/netzbon/config_libeufin_nexus.sh
index ae69543..0f6be75 100755
--- a/netzbon/config_libeufin_nexus.sh
+++ b/netzbon/config_libeufin_nexus.sh
@@ -11,20 +11,12 @@ 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
-# to be conducted separately.
-
-if ! taler-config -s "nexus-postgres" -o code &> /dev/null
-then echo -e "[nexus-postgres]\n"\
-"config = postgresql:///libeufin" \
- >> /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
+taler-config -s nexus-postgres -o config \
+ -V "postgresql:///libeufin" /etc/libeufin/libeufin-nexus.conf
+# Setting the currency here allows to fake incoming payments
+# without manually editing the configuration.
+taler-config -s nexus-ebics -o currency \
+ -V $CURRENCY /etc/libeufin/libeufin-nexus.conf
say "Setting up libeufin-nexus database"
libeufin-nexus-dbconfig