File: phpbb3.postrm

package info (click to toggle)
phpbb3 3.0.7-PL1-4%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 58,756 kB
  • ctags: 28,744
  • sloc: php: 457,643; sql: 9,245; sh: 521; makefile: 59; perl: 32
file content (41 lines) | stat: -rwxr-xr-x 954 bytes parent folder | download | duplicates (4)
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
37
38
39
40
41
#!/bin/sh
#
# possible calls: remove, purge, failed-upgrade, abort-install, abort-upgrade, disappear

set -e

if [ "$PB3DEBUG" = "maint" ]; then
  echo "[maint] $0 $@" >&2
fi
if [ "$PB3DEBUG" = "sh" ]; then
  set -x
fi

if [ -f /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
fi
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
	. /usr/share/dbconfig-common/dpkg/postrm
	dbc_go phpbb3 $@
fi

if [ "$1" = "purge" ]; then
    for c in /etc/phpbb3/database.inc.php /etc/phpbb3/*.conf ; do
        if [ -x /usr/bin/ucf ]; then
            ucf --purge $c
        fi
        if [ -x /usr/bin/ucfr ]; then
            ucfr --purge phpbb3 $c
        fi
        rm -f $c
    done
	rm -Rf /etc/phpbb3 /var/cache/phpbb3 /var/lib/phpbb3

	# remove other files generated manually via maintainer scripts
	rm /usr/share/phpbb3/www/images
fi

rm -Rf /usr/share/phpbb3/www/install-*
rm -Rf /usr/share/dbconfig-common/data/phpbb3

#DEBHELPER#