/[pkg-kolab]/trunk/kolab-cyrus-imapd/debian/kolab-cyrus-common.postrm
ViewVC logotype

Contents of /trunk/kolab-cyrus-imapd/debian/kolab-cyrus-common.postrm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 209 - (show annotations) (download)
Tue Jan 24 12:23:34 2006 UTC (7 years, 3 months ago) by white-guest
File size: 1975 byte(s)
* various path fixes
* we want to provide this README for the debconf templates
1 #! /bin/sh
2 # postrm script for kolab-cyrus-common
3 # Copyright (c) 2002 by Henrique de Moraes Holschuh
4 # Distributed under the GNU General Public License version 2
5 # $Id: kolab-cyrus-common.postrm 5 2005-03-12 23:19:45Z sven $
6 #
7 # see: dh_installdeb(1)
8
9 set -e
10
11 # debconf hook
12 . /usr/share/debconf/confmodule
13
14 # summary of how this script can be called:
15 # * <postrm> `remove'
16 # * <postrm> `purge'
17 # * <old-postrm> `upgrade' <new-version>
18 # * <new-postrm> `failed-upgrade' <old-version>
19 # * <new-postrm> `abort-install'
20 # * <new-postrm> `abort-install' <old-version>
21 # * <new-postrm> `abort-upgrade' <old-version>
22 # * <disappearer's-postrm> `disappear' <overwriter> <new-version>
23 # for details, see /usr/doc/packaging-manual/
24
25 case "$1" in
26 remove)
27 ;;
28 purge)
29 for i in /var/lib/cyrus /var/spool/sieve \
30 /var/spool/cyrus \
31 /var/run/cyrus /var/run/cyrus/socket ; do
32 dpkg-statoverride --remove $i || true
33 done
34 rm -rf /var/run/cyrus || true
35
36 # Should we remove our precious data?
37 db_title "Cyrus IMAPd 2.2" || true
38 db_fset kolab-cyrus-common/removespools seen false || true
39 db_input high kolab-cyrus-common/removespools || true
40 db_go || true
41
42 db_get kolab-cyrus-common/removespools
43 [ "${RET}" = "true" ] && {
44 for i in /var/spool/cyrus /var/lib/cyrus \
45 /var/spool/sieve /etc/sieve ; do
46 find "$i" -type f -exec rm -f '{}' \; || true
47 find "$i" -type d -depth -not -name 'lost+found' -exec rmdir '{}' \; || true
48 done
49 # Remove database type information
50 rm -f /usr/lib/cyrus/cyrus-*.active
51 }
52
53 update-rc.d kolab-cyrus remove >/dev/null
54 ;;
55
56 upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
57
58 ;;
59
60 *)
61 echo "postrm called with unknown argument \`$1'" >&2
62 exit 0
63
64 esac
65
66 # dh_installdeb will replace this with shell code automatically
67 # generated by other debhelper scripts.
68
69 #DEBHELPER#
70
71 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5