summaryrefslogtreecommitdiff
path: root/debian/taler-merchant.config
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-02 14:05:31 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-02 14:05:31 +0100
commit2b36cd1d866ca080e0f4e026f0445fe1577b07cc (patch)
tree5ebc4dafa6a62fe3e759f3b6c1acd3113e8b2e2b /debian/taler-merchant.config
parenta0a8f482fb69d6fc79e13f3fba302fc7ff964a3f (diff)
downloadmerchant-2b36cd1d866ca080e0f4e026f0445fe1577b07cc.tar.gz
merchant-2b36cd1d866ca080e0f4e026f0445fe1577b07cc.tar.bz2
merchant-2b36cd1d866ca080e0f4e026f0445fe1577b07cc.zip
debian package fixes
Diffstat (limited to 'debian/taler-merchant.config')
-rw-r--r--debian/taler-merchant.config18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/taler-merchant.config b/debian/taler-merchant.config
index 1e56b1e5..6eac093d 100644
--- a/debian/taler-merchant.config
+++ b/debian/taler-merchant.config
@@ -10,6 +10,24 @@ db_go
db_input low taler-merchant/groupname || true
db_go
+# Set permissions for sqlite3 file
+# (for when we support sqlite3 in the future)
+dbc_dbfile_owner="${_USERNAME}:${_GROUPNAME}"
+dbc_dbfile_perms="0600"
+
+dbc_psql_createdb_encoding="UTF8"
+
+# Set MySQL encoding to UTF8, just in case MySQL
+# support is added in the future.
+dbc_mysql_createdb_encoding="UTF8"
+
+# Try to get it to use UNIX domain sockets, if possible.
+# (Note: doesn't seem to do much, still uses username+PW+TCP
+# on my system :-( dbconfig documentation sucks.).
+dbc_authmethod_user=ident
+dbc_authmethod_admin=ident
+
+
if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
. /usr/share/dbconfig-common/dpkg/config.pgsql