This file is indexed.

postinst is in libapache2-mod-spamhaus 0.7-1.1.

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

# We cannot use dh_installdeb and debian/maintscript for this, because the
# conffile must be renamed before dh_apache2's generated postinst fragment
# tries to reload the server.
dpkg-maintscript-helper mv_conffile /etc/apache2/mods-available/mod-spamhaus.conf /etc/apache2/mods-available/spamhaus.conf 0.7-1.1~ -- "$@"
dpkg-maintscript-helper mv_conffile /etc/apache2/mods-available/mod-spamhaus.load /etc/apache2/mods-available/spamhaus.load 0.7-1.1~ -- "$@"

# 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 spamhaus  ; do
			apache2_invoke enmod $conf  || exit $?
		done
	fi
fi
# End automatically added section


if [ "$1" = configure ] && [ "$2" ] && \
   dpkg --compare-versions "$2" le-nl 0.7-1.1~ && \
   [ -e /etc/apache2/mods-enabled/mod-spamhaus.load.dpkg-was-disabled ]; then
	# We're upgrading, and the old name was disabled, so it must
	# have been disabled by the site administrator.  Preserve
	# this.
	rm -f /etc/apache2/mods-enabled/mod-spamhaus.load.dpkg-was-disabled
	if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
		echo "Disabling spamhaus again to reflect previous mod-spamhaus configuration."
		. /usr/share/apache2/apache2-maintscript-helper
		a2dismod -f -q spamhaus
		apache2_reload restart
	fi
fi

exit 0