File: postrm

package info (click to toggle)
buildbot 0.7.4-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,968 kB
  • ctags: 3,745
  • sloc: python: 20,806; sh: 194; makefile: 59
file content (31 lines) | stat: -rw-r--r-- 631 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
#! /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 && \
	    deluser --quiet --system buildbot
	rm -rf /var/run/buildbot
	rm -rf /var/lib/buildbot
        ;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

#DEBHELPER#

exit 0