This file is indexed.

postinst is in pioneers-metaserver 15.5-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
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh

set -e

CONFIG_FILE=/etc/default/pioneers-metaserver

. /usr/share/debconf/confmodule

# Get current values of the settings.
if test -e "$CONFIG_FILE" ; then
	. "$CONFIG_FILE"
else
	cat > "$CONFIG_FILE" << EOF
# This file contains the settings for the pioneers metaserver.
# It is used by /etc/init.d/pioneers-metaserver, for starting and stopping
#  the metaserver.
# See /etc/init.d/pioneers-metaserver for possible variables to assign.
# If no value is given here, the default from that file is used.
#
# This file is sourced as a shell script, so no spaces are allowed
# around the = sign.
EOF
fi

# This function will change variable $1 to the result of debconf question $2.
# If it already had the right setting, the file is not touched.
conffile_edit ()
{
	variable="$1"
	question="$2"
	# Get the answer to the debconf question.
	db_get "$question" || return 0
	# Do nothing if the value hasn't changed.
	test "$RET" != "`eval 'echo $'"$variable"`" || return 0

	if grep -q "^$variable=" "$CONFIG_FILE" ; then
		# Edit the conffile to contain the new setting.
		sed -i "s/^\($variable=\).*\$/\\1'$RET'/" "$CONFIG_FILE"
	else
		# Or if the setting isn't in the conffile yet, add it.
		echo "$variable='$RET'" >> "$CONFIG_FILE"
	fi
	return 0
}

conffile_edit PORT_RANGE pioneers-metaserver/ports
conffile_edit METASERVER_NAME pioneers-metaserver/name
conffile_edit METASERVER_ARGS pioneers-metaserver/arguments

# Automatically added by dh_installinit/11.1.4ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -x "/etc/init.d/pioneers-metaserver" ]; then
		update-rc.d pioneers-metaserver defaults >/dev/null
		if [ -n "$2" ]; then
			_dh_action=restart
		else
			_dh_action=start
		fi
		invoke-rc.d pioneers-metaserver $_dh_action || exit 1
	fi
fi
# End automatically added section


exit 0