merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

README-packaging.md (1217B)


      1 ## Database setup and upgrades
      2 
      3 For the standard local PostgreSQL setup, run `sudo taler-merchant-dbconfig`.
      4 It uses `/etc/taler-merchant/taler-merchant.conf`, provisions missing database
      5 objects, and invokes `taler-merchant-dbinit` as `taler-merchant-httpd`.
      6 Existing databases are preserved unless the destructive `-r` option is given.
      7 The package does not use dbconfig-common.
      8 
      9 For an upgrade, stop `taler-merchant.target` before installing packages, back up
     10 the database, install the packages, and run `sudo taler-merchant-dbconfig`.
     11 Start the desired services only after migration succeeds. Coordinate all hosts
     12 sharing the database. The helper does not stop services or make backups.
     13 
     14 For remote databases or separately managed privileges, provision the database
     15 separately and run `taler-merchant-dbinit -c /path/to/merchant.conf` as the
     16 appropriate migration identity. Restore any revoked migration privileges first.
     17 
     18 Package configuration and scheduled garbage collection do not run migrations.
     19 A package upgrade preserves running/stopped services, so the operator must stop
     20 them before installing an incompatible version: automatic process recovery can
     21 otherwise launch new binaries against the old schema.