diff options
Diffstat (limited to 'debian/anastasis-httpd.config')
-rw-r--r-- | debian/anastasis-httpd.config | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/debian/anastasis-httpd.config b/debian/anastasis-httpd.config index 7ea8a7b..97f57bc 100644 --- a/debian/anastasis-httpd.config +++ b/debian/anastasis-httpd.config | |||
@@ -7,32 +7,16 @@ set -e | |||
7 | _USERNAME=anastasis-httpd | 7 | _USERNAME=anastasis-httpd |
8 | _GROUPNAME=www-data | 8 | _GROUPNAME=www-data |
9 | 9 | ||
10 | db_input low anastasis/reconfigure-webserver || true | 10 | # For now, we only support postgres |
11 | db_go | 11 | dbc_dbtypes=pgsql |
12 | 12 | dbc_dbuser=${_USERNAME} | |
13 | # Set permissions for sqlite3 file | ||
14 | # (for when we support sqlite3 in the future) | ||
15 | dbc_dbfile_owner="${_USERNAME}:${_GROUPNAME}" | ||
16 | dbc_dbfile_perms="0600" | ||
17 | |||
18 | dbc_psql_createdb_encoding="UTF8" | ||
19 | |||
20 | # Set MySQL encoding to UTF8, just in case MySQL | ||
21 | # support is added in the future. | ||
22 | dbc_mysql_createdb_encoding="UTF8" | ||
23 | 13 | ||
24 | # Try to get it to use UNIX domain sockets, if possible. | ||
25 | # (Note: doesn't seem to do much, still uses username+PW+TCP | ||
26 | # on my system :-( dbconfig documentation sucks.). | ||
27 | dbc_authmethod_user=ident | 14 | dbc_authmethod_user=ident |
28 | dbc_authmethod_admin=ident | 15 | dbc_authmethod_admin=ident |
29 | 16 | ||
30 | dbc_dbuser=${_USERNAME} | ||
31 | |||
32 | |||
33 | if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then | 17 | if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then |
34 | . /usr/share/dbconfig-common/dpkg/config.pgsql | 18 | . /usr/share/dbconfig-common/dpkg/config.pgsql |
35 | dbc_go anastasis "$@" | 19 | dbc_go anastasis-httpd "$@" |
36 | fi | 20 | fi |
37 | 21 | ||
38 | db_stop | 22 | db_stop |