aboutsummaryrefslogtreecommitdiff
path: root/debian/db/install/pgsql
diff options
context:
space:
mode:
Diffstat (limited to 'debian/db/install/pgsql')
-rwxr-xr-xdebian/db/install/pgsql4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/db/install/pgsql b/debian/db/install/pgsql
index 7a960471..67b030c0 100755
--- a/debian/db/install/pgsql
+++ b/debian/db/install/pgsql
@@ -1,14 +1,14 @@
1#!/bin/bash 1#!/bin/bash
2set -eu 2set -eu
3merchantdb_secretconf=/etc/taler/secrets/merchant-db.secret.conf 3merchantdb_secretconf=/etc/taler/secrets/merchant-db.secret.conf
4merchantdb_overrideconf=/etc/taler/overrides.conf 4merchantdb_overrideconf=/etc/taler/conf.d/merchant-debconf.conf
5# get database settings from dbconfig-common and configure 5# get database settings from dbconfig-common and configure
6# for ADMINISTRATIVE access 6# for ADMINISTRATIVE access
7if [ -f /etc/dbconfig-common/taler-merchant.conf ]; then 7if [ -f /etc/dbconfig-common/taler-merchant.conf ]; then
8 . /etc/dbconfig-common/taler-merchant.conf 8 . /etc/dbconfig-common/taler-merchant.conf
9 case "$dbc_dbtype" in 9 case "$dbc_dbtype" in
10 pgsql) 10 pgsql)
11 echo -e "[merchant]\nDB=postgres\n\n" > \ 11 echo -e "# Config file auto-generated by Debian.\n[merchant]\nDB=postgres\n\n" > \
12 $merchantdb_overrideconf 12 $merchantdb_overrideconf
13 echo -e "[merchantdb-postgres]\nCONFIG=postgres:///${dbc_dbname}\n\n" > \ 13 echo -e "[merchantdb-postgres]\nCONFIG=postgres:///${dbc_dbname}\n\n" > \
14 $merchantdb_secretconf 14 $merchantdb_secretconf