This file is indexed.

postinst is in libapache2-mod-shib2 2.4.3+dfsg-2ubuntu1.

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
46
47
48
49
50
51
52
53
#!/bin/sh

set -e

# Prior to 2.0.dfsg1-4, we named our Apache configuration files shib instead
# of shib2.  We therefore need to unlink the old configuration files, and if
# they were linked in, we should link in the new ones.
#
# We also have to work around a bug in the etch Shibboleth SP 1.x packages
# that caused them to remove the wrong module configuration and hence not
# unlink their configuration.  If the 1.x configuration is still linked in, it
# will break the 2.x module, so make sure it's disabled on initial install.
if [ "$1" = "configure" ] ; then
    if dpkg --compare-versions "$2" lt-nl 2.0.dfsg1-4 ; then
        if [ -f /etc/apache2/mods-enabled/shib.load ] ; then
            a2enmod shib2
        fi
        a2dismod shib || true
    fi

    # Most of the time, this will produce an error message.  It only does
    # anything if we're replacing a broken libapache2-mod-shib package.
    # Suppress the normally useless error message to not confuse people.
    if [ -z "$2" ] ; then
        a2dismod shib 2>/dev/null || true
    fi

    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

    # The new shibd (which is about to be started) requires the corresponding
    # Apache module, otherwise strange, hard to debug error messages result.
    if [ -f /etc/apache2/mods-enabled/shib2.load ] ; then
        if invoke-rc.d apache2 status >/dev/null 2>&1 ; then
            invoke-rc.d apache2 restart
        fi
    fi
fi

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


exit 0