This file is indexed.

postinst is in stud 0.3-6.

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
#!/bin/sh

set -e

if ! ([ "$1" = "configure" ] || [ "$1" = "reconfigure" ]); then
  exit 0
fi

USER=_stud

adduser --system --disabled-password --disabled-login \
    --home /var/run/stud --quiet --force-badname \
    --no-create-home --group "$USER"

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


exit 0