This file is indexed.

postinst is in pyaimt 0.8.0.1-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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh

set -e

case "$1" in
configure)
	if ! getent passwd pyaimt >/dev/null; then
		adduser --system --disabled-login \
			--no-create-home --home /var/lib/pyaimt \
			--group \
			pyaimt
	fi
	if test -n "$2" && dpkg --compare-versions "$2" le 0.11.1-4; then
		if test -f /var/log/jabber/pyaimt.log*; then
			mv /var/log/jabber/pyaimt.log* /var/log/pyaimt
		fi
	fi
	if ! dpkg-statoverride --list /var/log/pyaimt >/dev/null; then
		chown -R pyaimt:adm       /var/log/pyaimt
	fi
	if ! dpkg-statoverride --list /var/lib/pyaimt >/dev/null; then
		chown -R pyaimt:adm       /var/lib/pyaimt
	fi
	;;
abort-upgrade|abort-remove|abort-deconfigure)
	;;
*)
	echo "postinst called with unknown argument \`$1'" >&2
	exit 1
	;;
esac


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p pyaimt /usr/share/pyaimt
fi

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


exit 0