File: postinst

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 (34 lines) | stat: -rw-r--r-- 566 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
34
#! /bin/sh

set -e

case "$1" in
    configure)
	if ! getent passwd buildbot>/dev/null; then
	    echo "Creating/updating buildbot user account..."
	    adduser --home /var/lib/buildbot \
		--gecos "BuildBot system user" \
		--system \
		--quiet --disabled-password buildbot
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

install-info --quiet --section "Development" "Development" \
    /usr/share/info/buildbot.info.gz


#DEBHELPER#

exit 0