File: bandwidthd-pgsql.postinst

package info (click to toggle)
bandwidthd 2.0.1%2Bcvs20090917-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,568 kB
  • sloc: sh: 2,958; ansic: 2,743; php: 1,263; yacc: 216; makefile: 158; lex: 36; sql: 27
file content (36 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

set -e

if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then
	echo "bandwidthd-pgsql.postinst: $*"
	set -x
fi

# reload apache2 config for installed /bandwidthd alias, ignore errors
# since we don't want to actually depend on having apache installed.
invoke-rc.d apache2 reload || true

# Source debconf library.
. /usr/share/debconf/confmodule

# Source dbconfig-common library.
. /usr/share/dbconfig-common/dpkg/postinst.pgsql

dbc_first_version="2.0.1+cvs20050208-12"

dbc_generate_include=php:/etc/bandwidthd/debian-db.php
dbc_generate_include_owner="www-data:www-data"
dbc_generate_include_perms="660"
dbc_dbfile_owner="www-data:www-data"
dbc_dbfile_perms="0660"

dbc_go bandwidthd-pgsql $@

# debhelper autoinserted stuff:

#DEBHELPER#


# Stop debhelper, we are done.
db_stop