postinst is in auth2db 0.2.5-2+dfsg-5ubuntu1.
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 | #!/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 [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/auth2db" ]; then
		update-rc.d auth2db defaults >/dev/null
	fi
	if [ -x "/etc/init.d/auth2db" ] || [ -e "/etc/init/auth2db.conf" ]; then
		invoke-rc.d auth2db start || exit $?
	fi
fi
# End automatically added section
 |