This file is indexed.

postinst is in corosync 1.4.6-1.1.

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