This file is indexed.

postinst is in corosync 2.3.3-1ubuntu1.

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