This file is indexed.

postinst is in winbind 2:3.6.25-0ubuntu0.12.04.10.

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

getent group winbindd_priv >/dev/null 2>&1 ||
	addgroup --system --force-badname --quiet winbindd_priv

# move a tdb that should have been in /var/cache all along
if dpkg --compare-versions "$2" lt-nl 3.0.25b-2 \
   && [ -e /var/run/samba/idmap_cache.tdb ] \
   && ! [ -e /var/cache/samba/idmap_cache.tdb ]
then
        mv /var/run/samba/idmap_cache.tdb /var/cache/samba/idmap_cache.tdb
fi

if dpkg --compare-versions "$2" lt-nl 2:3.5.4~dfsg-2 \
   && [ -e /etc/samba/idmap2.tdb ] \
   && ! [ -e /var/lib/samba/idmap2.tdb ]
then
	mv /etc/samba/idmap2.tdb /var/lib/samba/idmap2.tdb
fi

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