summaryrefslogtreecommitdiff
path: root/netzbon/config_libeufin_nexus.sh
blob: e987013c621298d0f2e64079f13940ffa55da9e9 (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

source functions.sh
source config/user.conf

taler-config -s nexus-postgres -o config \
  -V "postgresql:///libeufin" -c /etc/libeufin/libeufin-nexus.conf
taler-config -s nexus-ebics -o currency \
  -V $FIAT_CURRENCY -c /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