summaryrefslogtreecommitdiff
path: root/debian/db/install/pgsql
diff options
context:
space:
mode:
Diffstat (limited to 'debian/db/install/pgsql')
-rwxr-xr-xdebian/db/install/pgsql28
1 files changed, 8 insertions, 20 deletions
diff --git a/debian/db/install/pgsql b/debian/db/install/pgsql
index 289ccb77..8118fb7b 100755
--- a/debian/db/install/pgsql
+++ b/debian/db/install/pgsql
@@ -11,16 +11,10 @@ if [ -f /etc/dbconfig-common/taler-merchant.conf ]; then
. /etc/dbconfig-common/taler-merchant.conf
case "$dbc_dbtype" in
pgsql)
- taler-config \
- -c $merchantdb_secretconf \
- -s "merchantdb-postgres" \
- -o "CONFIG" \
- -V "postgres:///$dbc_dbname"
- taler-config \
- -c $merchantdb_overrideconf \
- -s "merchant" \
- -o "DB" \
- -V "postgres"
+ echo -e "[merchant]\nDB=postgres\n\n" >
+ $merchantdb_overrideconf
+ echo -e "[merchantdb-postgres]\nCONFIG=postgres:///${dbc_dbname}\n\n" >
+ $merchantdb_secretconf
;;
sqlite3)
# Later: use something like:
@@ -53,16 +47,10 @@ if [ -f /etc/dbconfig-common/taler-merchant.conf ]; then
echo "GRANT SELECT, UPDATE ON ALL SEQUENCES IN SCHEMA public TO \"$dbc_dbuser\";" \
| sudo -u postgres psql "postgres:///$dbc_dbname"
- taler-config \
- -c $merchantdb_secretconf \
- -s "merchantdb-postgres" \
- -o "CONFIG" \
- -V "postgres://$dbc_dbuser:$dbc_dbpass@$dbc_dbserver/$dbc_dbname"
- taler-config \
- -c $merchantdb_overrideconf \
- -s "merchant" \
- -o "DB" \
- -V "postgres"
+ echo -e "[merchantdb-postgres]\nCONFIG=postgres://${dbc_user}:${dbc_dbpass}@${dbc_dbserver}/${dbc_dbname}\n\n" >
+ $merchantdb_secretconf
+ echo -e "[merchant]\nDB=postgres\n\n" >
+ $merchantdb_overrideconf
;;
sqlite3)
# Later: use something like: