26.34. kych-eid-dbconfig(1)#
26.34.1. Name#
kych-eid-dbconfig - create the PostgreSQL database for kych-eid
26.34.2. Synopsis#
kych-eid-dbconfig [-c CONFIG] [-r] [-s] [-u USER] [-h]
26.34.3. Description#
kych-eid-dbconfig is the one-time setup of kych-eid(1)’s
database, run as root: it creates the PostgreSQL role the daemon connects
as and the database that kych-eid.conf(5)’s DATABASE names, owned by
that role, and then loads the schema with kych-eid-dbinit(1). It asks
kych-eid-dbinit where the database is, so a server on a non-default port
works, and it refuses to act on a database on another host.
The administrative work is done as the postgres user over the local
socket. The daemon connects with peer authentication as the system user it
runs as, so the role has that user’s name.
26.34.4. Options#
- -c CONFIG
Use CONFIG instead of
/etc/kych-eid/kych-eid.conf.- -r
Reset: drop an existing database first. This destroys every session, those in flight included.
- -s
Skip the schema initialisation, creating only the role and the database.
- -u USER
The system user the daemon runs as, and so the role to create. Defaults to
kych-eid.- -h
Print short help.
26.34.5. Examples#
$ sudo kych-eid-dbconfig
26.34.6. See Also#
kych-eid-dbinit(1), kych-eid(1), kych-eid.conf(5).
26.34.7. Bugs#
Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.