Mercurial > notdcc
comparison debian/dcc-common.postrm @ 2:f6716cb00029
Replace buggy stuff in deb dir, never make phone calls while working
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 14:29:12 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:9b8d79ac0dc3 | 2:f6716cb00029 |
---|---|
1 #! /bin/sh | |
2 # postrm script for dcc | |
3 # | |
4 # see: dh_installdeb(1) | |
5 | |
6 set -e | |
7 | |
8 # summary of how this script can be called: | |
9 # * <postrm> `remove' | |
10 # * <postrm> `purge' | |
11 # * <old-postrm> `upgrade' <new-version> | |
12 # * <new-postrm> `failed-upgrade' <old-version> | |
13 # * <new-postrm> `abort-install' | |
14 # * <new-postrm> `abort-install' <old-version> | |
15 # * <new-postrm> `abort-upgrade' <old-version> | |
16 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> | |
17 # for details, see http://www.debian.org/doc/debian-policy/ or | |
18 # the debian-policy package | |
19 | |
20 | |
21 case "$1" in | |
22 purge) | |
23 | |
24 rm -rf /var/log/dcc /var/lib/dcc/log /var/lib/dcc/map /var/lib/dcc/map.txt /var/lib/dcc/ids /etc/dcc /var/lib/dcc/whiteclnt /var/lib/dcc /var/run/dcc | |
25 | |
26 if getent passwd dcc >/dev/null; then | |
27 userdel dcc || echo "dcc: Could not remove dcc user" >&2 | |
28 fi | |
29 | |
30 | |
31 if getent group dcc >/dev/null; then | |
32 groupdel dcc || echo "dcc: Could not remove dcc group" >&2 | |
33 fi | |
34 | |
35 | |
36 ;; | |
37 | |
38 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | |
39 | |
40 | |
41 ;; | |
42 | |
43 *) | |
44 echo "postrm called with unknown argument \`$1'" >&2 | |
45 exit 1 | |
46 | |
47 esac | |
48 | |
49 # dh_installdeb will replace this with shell code automatically | |
50 # generated by other debhelper scripts. | |
51 | |
52 #DEBHELPER# | |
53 | |
54 exit 0 |