File: postrm

package info (click to toggle)
buildbot 0.7.8-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,172 kB
  • ctags: 4,773
  • sloc: python: 28,299; sh: 196; makefile: 59
file content (33 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (2)
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
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
        ;;
    remove)
        if [ -x "/etc/init.d/buildbot" ]; then
	    if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d buildbot stop || exit 0
	    else
                /etc/init.d/buildbot stop || exit 0
	    fi
	fi
        ;;
    purge)
        getent passwd buildbot >/dev/null && \
	if [ -x /usr/sbin/deluser ]; then
	    deluser --quiet --system buildbot
	fi
	rm -rf /var/run/buildbot
	rm -rf /var/lib/buildbot
        ;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

#DEBHELPER#

exit 0