This file is indexed.

postinst is in shishi-kdc 1.0.2-6build1.

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

# Written by Petter Reinholdtsen <pere@hungry.com> see
# http://bugs.debian.org/542112

set -e

# Recover from incorrect init.d script headers in version 0.0.40-1 and earlier
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.0.40-1" \
   && [ -f /etc/rc3.d/S[0-9][0-9]shishi-kdc ] \
   && [ -f /etc/rc2.d/K[0-9][0-9]shishi-kdc ] ; then
    update-rc.d -f shishi-kdc remove
fi

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