summaryrefslogtreecommitdiff
path: root/netzbon/config_libeufin_nexus.sh
blob: 55cafb5ff15fd7da4c330ba63bfc33886f9bd518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# This file is in the public domain.
#
# This script configure and launches libeufin-bank.
# The setup provides the admin account at the bank, and
# another account for the exchange at the bank.
#
# The environment must provide the following variables:
set -eu

# 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.

echo -e "[nexus-postgres]\n"\
"config = postgresql:///libeufinbank" \
  >> /etc/libeufin/libeufin-nexus.conf

say "Setting up libeufin-nexus database"
libeufin-nexus-dbconfig

say "Start nexus tasks..."
systemctl enable --now libeufin-nexus-ebics-fetch
systemctl enable --now libeufin-nexus-ebics-submit