summaryrefslogtreecommitdiff
path: root/debian/sync-httpd.config
blob: 36e67d125ccff94224a055f4ccaf3d9edcfa5cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

_USERNAME=sync-httpd
_GROUPNAME=www-data

# For now, we only support postgres
dbc_dbtypes=pgsql
dbc_dbuser=${_USERNAME}

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
    dbc_go sync-httpd "$@"
fi

db_stop