This file is indexed.

postinst is in shibboleth-sp2-utils 2.5.3+dfsg-2.1build1.

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

set -e

# Add a user as which to run the shibd daemon.
if [ "$1" = "configure" ] ; then
    if ! getent passwd _shibd > /dev/null ; then
        echo 'Adding system user for Shibboleth daemon' 1>&2
        adduser --system --group --quiet --home /var/log/shibboleth \
            --no-create-home --disabled-login --force-badname _shibd
    fi
fi

# Create the cache directory owned by the shibd user.
if [ ! -d /var/cache/shibboleth ] ; then
    mkdir /var/cache/shibboleth
    chown _shibd:_shibd /var/cache/shibboleth
fi

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


exit 0