This file is indexed.

postinst is in voms-server 2.0.12-4build1.

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

set -e

if test "$1" = "configure" -o "$1" = "reconfigure" ; then

    test -r /etc/default/voms && . /etc/default/voms

    if test -z "$VOMS_USER" -o "$VOMS_USER" = "voms" ; then

	getent group voms > /dev/null || \
	    addgroup --quiet --system voms

	getent passwd voms > /dev/null || \
	    adduser --quiet --system --home /etc/voms --shell /bin/false \
	    --ingroup voms --disabled-password --disabled-login \
	    --gecos "VOMS Server Account" voms

	chown voms:voms /var/log/voms

    fi

fi

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