This file is indexed.

postinst is in buddycloud-server 0.3.5-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
#!/bin/sh

set -e

pkg=buddycloud-server

. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst.pgsql

dbc_pgsql_createdb_encoding="UTF8"
dbc_go "$pkg" "$@"

if [ "$1" = "configure" ]; then
	adduser --system --quiet --group --disabled-password \
		--gecos "Buddycloud XMPP channel service" \
		--no-create-home --home "/var/run/$pkg" \
		buddycloud
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/buddycloud-server" ]; then
	if [ ! -e "/etc/init/buddycloud-server.conf" ]; then
		update-rc.d buddycloud-server start 20 2 3 4 5 . stop 20 1 . >/dev/null
	fi
	invoke-rc.d buddycloud-server start || exit $?
fi
# End automatically added section