This file is indexed.

postinst is in auth2db 0.2.5-2+dfsg-4.

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

set -e
if [ -f /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
fi

if [ "$1" = "configure" ]; then
	if [ -f /etc/default/auth2db ]; then
		# Alert Activation
		db_get auth2db/activate_alerts
		if [ "$RET" = "false" ]; then
			sed -i 's/ACTIVE_ALERTS=.*/ACTIVE_ALERTS=""/' /etc/default/auth2db
		else
			sed -i 's/ACTIVE_ALERTS=.*/ACTIVE_ALERTS="Yes"/' /etc/default/auth2db
		fi
	fi
chown auth2db:root /var/lib/auth2db/tmp
chown auth2db:root /var/lib/auth2db/flag.d

# Apply recursively so we can fix the ugly effect of anyone reading system events
chmod -R o-rxw /var/lib/auth2db/tmp
chmod -R o-rxw /var/lib/auth2db/flag.d
fi

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