This file is indexed.

postinst is in dsc-statistics-collector 201203250530-2.

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
#!/bin/bash -e
# postinst

USERNAME="Debian-dsc-statistics"
HOMEDIR="/var/lib/dsc-statistics"

[ -n "$DSCDEBUG" ] && set -x

# Add user
if [ "$1" = "configure" ]; then
    echo >&2 'Adding system user'
    adduser --system --group --home $HOMEDIR --shell /bin/bash \
            --disabled-password --force-badname $USERNAME
fi

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