This file is indexed.

postinst is in pioneers-meta-server 14.1-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
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
#!/bin/sh

set -e

CONFIG_FILE=/etc/default/pioneers-meta-server

. /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 meta-server.
# It is used by /etc/init.d/pioneers-meta-server, for starting and stopping
#  the meta-server.
# See /etc/init.d/pioneers-meta-server 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-meta-server/ports
conffile_edit META_SERVER_NAME pioneers-meta-server/name
conffile_edit META_SERVER_ARGS pioneers-meta-server/arguments

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


exit 0