File: bandwidthd-pgsql.prerm

package info (click to toggle)
bandwidthd 2.0.1%2Bcvs20090917-14
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,312 kB
  • sloc: sh: 3,010; ansic: 2,752; php: 1,263; yacc: 216; makefile: 152; lex: 36; sql: 27
file content (29 lines) | stat: -rw-r--r-- 717 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
#!/bin/sh

set -e

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

# Hook up the dbconfig-common library.
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/prerm
dbc_go bandwidthd-pgsql $@


# From http://wiki.debian.org/Apache/PackagingFor24 :
# "Likewise, in postrm do upon purge and simple removals"
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
	. /usr/share/apache2/apache2-maintscript-helper
	apache2_invoke disconf bandwidthd.conf
fi

# reload apache2 config for uninstalled /bandwidthd alias.
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
	. /usr/share/apache2/apache2-maintscript-helper
	apache2_reload
fi

#DEBHELPER#