This file is indexed.

postinst is in openafs-fileserver 1.6.7-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
#!/bin/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0

# Configure the local cell for the file server.
db_get openafs-fileserver/thiscell
echo $RET >/etc/openafs/server/ThisCell

# If there is no local server CellServDB, construct it from the client
# CellServDB by looking for the local cell.  If that fails, create a minimal
# CellServDB for the server with no information.
if [ ! -f /etc/openafs/server/CellServDB ] ; then
    sed -n "/^>$RET/,/^>/p" /etc/openafs/CellServDB | sed '$d' \
        >/etc/openafs/server/CellServDB
    if [ ! -s /etc/openafs/server/CellServDB ] ; then
        echo ">$RET" >/etc/openafs/server/CellServDB
    fi
fi

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


exit 0