File: postrm

package info (click to toggle)
pyicqt 0.8b-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,016 kB
  • ctags: 1,751
  • sloc: python: 11,539; sh: 177; makefile: 57; xml: 16
file content (33 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

set -e

case "$1" in
purge)
    rm -rf /var/lib/pyicqt
    rm -rf /var/log/pyicqt
    rm -rf /var/run/pyicqt
    # delete user
    if getent passwd pyicqt >/dev/null; then
        if [ -x /usr/sbin/deluser ]; then
            deluser --system pyicqt
        fi
    fi
    # delete group
    if getent group pyicqt >/dev/null; then
        if [ -x /usr/sbin/delgroup ]; then
            delgroup --system pyicqt
        fi
    fi
    ;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;
*)
    echo "postrm called with unknown argument '$1'" >&2
    exit 1
    ;;
esac

#DEBHELPER#

exit 0