This file is indexed.

postrm is in canna 3.7p3-12.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
42
43
44
45
46
47
48
49
50
51
#!/bin/sh

set -e

case "$1" in
    purge)
    rm -rf /var/log/canna
    # see http://lists.debian.org/debian-devel/2002/10/msg00345.html
    # debhelper might cause this script to be called twice on purge
    # therefore test, if the user exists before trying to remove it
    if getent passwd canna >/dev/null ;  then
      userdel --remove canna
    fi
    rm -f /etc/default/canna
    rm -f /etc/default/canna.dpkg-old
    rm -f /etc/hosts.canna
    rm -rf /var/lib/canna/dic/group
    rm -rf /var/lib/canna/dic/user
    rm -f /var/lib/canna/dic/canna/*.cld
    rm -f /var/lib/canna/dic/canna/*.cbd
    rm -f /var/lib/canna/dic/canna/dics.dir
    rm -f /etc/canna/dics.dir.d/00canna.dics.dir
    rm -rf /etc/canna/dics.dir.d
    #rm -rf /etc/canna
    ;;
    
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;
    
    *)
    ;;
esac

# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
	update-rc.d canna remove >/dev/null
fi


# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
	systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section