File: postrm

package info (click to toggle)
linpopup 1.2.0-8.3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 640 kB
  • ctags: 247
  • sloc: ansic: 2,885; sh: 259; makefile: 228
file content (32 lines) | stat: -rw-r--r-- 605 bytes parent folder | download
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
#!/bin/sh
# linpopup postrm

set -e

#DEBHELPER#

case "$1" in
    remove)
        ;;
    purge)
	rm -f /var/lib/linpopup/messages.dat || true
        [ -d /var/lib/linpopup ] && rmdir /var/lib/linpopup 2>/dev/null || true
        if [ -e /usr/share/debconf/confmodule ]; then
                . /usr/share/debconf/confmodule
                db_purge
        fi
        ;;
    upgrade)
        ;;
    failed-upgrade)
        ;;
    abort-install)
        ;;
    abort-upgrade)
        ;;
    disappear)
        ;;
    *)
        echo "postrm called with unexpected argument '$1', ignored."
        ;;
esac