This file is indexed.

postinst is in corosync 1.4.2-2.

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

set -e

# we need ais user

if [ "$1" = "configure" ]; then
	adduser --quiet --group --system --no-create-home ais

	# Touch an empty file so the log dir stays around after package removal
	# so logrotate doesn't choke
	touch /var/log/corosync/.empty
fi

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