This file is indexed.

postinst is in gross 1.0.2-4.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
35
36
37
38
39
40
41
42
43
44
45
#! /bin/sh
# postinst script for gross

set -e

# lintian: postinst-does-not-load-confmodule
. /usr/share/debconf/confmodule

case "$1" in
    configure)
        DBDIR='/var/lib/gross'

        getent passwd gross > /dev/null || \
            adduser --system --home "$DBDIR" --no-create-home \
                    --disabled-password --group gross
        getent group gross > /dev/null || \
            addgroup --system gross 

        install -d -o gross -g gross -m 0700 "$DBDIR"
    ;;

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

    ;;

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

# Automatically added by dh_installinit
if [ -x "/etc/init.d/gross" ]; then
	update-rc.d gross defaults >/dev/null
fi
if [ -x "/etc/init.d/gross" ] || [ -e "/etc/init/gross.conf" ]; then
	invoke-rc.d gross start || exit $?
fi
# End automatically added section


# without this, debconf hangs after end of postinst.
#db_stop

exit 0