aboutsummaryrefslogtreecommitdiff
path: root/libeufin/README
blob: ecddebd9959ba59d5c8d486bb5b014df8e64b4ad (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
25
26
27
28
29
30
31
32
33
34
The merchant for the Taler's pseudo bank.

Installing this package automatically creates the libeufin user and group.

The libeufin bank requires a postgres database to be configured.  The setup
described here assumes postgres was installed with using 'Peer authentication'
by default (omitting '-A md5' when running 'initdb' after postgres
installation).

```
# Create the database and its user.
sudo -u postgres -- createuser libeufin-bank
sudo -u postgres -- createdb libeufin-bank --owner libeufin-bank

# Initialize the database, must be done after each upgrade
sudo -u libeufin-bank -- libeufin-bank-dbinit -c /etc/libeufin/libeufin-bank.conf

# The admin password should be set after installation.
libeufin-bank passwd -c /etc/libeufin/libeufin-bank.conf admin $PASSWORD
```


To have the system start and stop with your host, add to /etc/rc.d/rc.local:

  if [ -x /etc/rc.d/rc.libeufin-bank ]; then
    /etc/rc.d/rc.libeufin-bank start
  fi

And to /etc/rc.d/rc.local_shutdown (creating if needed):

  if [ -x /etc/rc.d/rc.libeufin-bank ]; then
    /etc/rc.d/rc.libeufin-bank stop
  fi