postinst is in libapache2-mod-shib2 2.5.2+dfsg-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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #!/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_apache2
if true; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
for conf in shib2 ; do
apache2_invoke enmod $conf || exit $?
done
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/shibd" ] || [ -e "/etc/init/shibd.conf" ]; 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
|