This file is indexed.

postinst is in quantum-server 2012.1-0ubuntu4.

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

set -e

if [ "$1" = "configure" ]; then
	if ! getent passwd quantum > /dev/null 2>&1
	then
		adduser --system --home /usr/share/quantum --ingroup quantum --no-create-home --shell /bin/bash quantum
	fi

	if ! getent group quantum > /dev/null 2>&1
	then
		addgroup --system quantum >/dev/null
	fi

	chown quantum:quantum -R /var/log/quantum /etc/quantum
	chmod 0700 /etc/quantum
	chmod 0700 /var/log/quantum
fi

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