File: postrm

package info (click to toggle)
serendipity 1.0.4-1%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,692 kB
  • ctags: 10,206
  • sloc: php: 83,899; sql: 1,024; sh: 597; makefile: 56
file content (25 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

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 serendipity $@
fi

if [ "$1" = "purge" ]; then
        rm -f /etc/serendipity/database.inc.php
	if which ucf >/dev/null 2>&1; then
		ucf --purge /etc/serendipity/database.inc.php
	fi

	# remove cache and user data
	rm -rf /var/cache/serendipity /var/lib/serendipity
fi


#DEBHELPER#