26.40. kych-oid4vp-dbconfig(1)#

26.40.1. Name#

kych-oid4vp-dbconfig - create the PostgreSQL database for kych-oid4vp

26.40.2. Synopsis#

kych-oid4vp-dbconfig [-c CONFIG] [-r] [-s] [-u USER] [-h]

26.40.3. Description#

kych-oid4vp-dbconfig is the one-time setup of kych-oid4vp(1)’s database, run as root: it creates the PostgreSQL role the daemon connects as and the database that kych-oid4vp.conf(5)’s DATABASE names, owned by that role, and then loads the schema with kych-oid4vp-dbinit(1). It asks kych-oid4vp-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.40.4. Options#

-c CONFIG

Use CONFIG instead of /etc/kych-oid4vp/kych-oid4vp.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-oid4vp.

-h

Print short help.

26.40.5. Examples#

$ sudo kych-oid4vp-dbconfig

26.40.6. See Also#

kych-oid4vp-dbinit(1), kych-oid4vp(1), kych-oid4vp.conf(5).

26.40.7. Bugs#

Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.