aboutsummaryrefslogtreecommitdiff
path: root/libeufin/README
diff options
context:
space:
mode:
Diffstat (limited to 'libeufin/README')
-rw-r--r--libeufin/README34
1 files changed, 34 insertions, 0 deletions
diff --git a/libeufin/README b/libeufin/README
new file mode 100644
index 0000000..ecddebd
--- /dev/null
+++ b/libeufin/README
@@ -0,0 +1,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
+