This file is indexed.

postinst is in cntlm 0.92.3-1ubuntu2.

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
#
# Postinst script for cntlm
#

set -e

NAME=cntlm
HOME=/var/run/cntlm

# Create cntlm user and its homedir
if ! getent passwd $NAME >/dev/null; then
	adduser --system --home $HOME --shell /bin/sh --disabled-password $NAME
fi

if ! [ -d $HOME ]; then
	mkdir -p $HOME
	chmod 755 $HOME
	chown -h -R $NAME $HOME
fi



# Automatically added by dh_installinit
if [ -x "/etc/init.d/cntlm" ]; then
	update-rc.d cntlm defaults >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d cntlm start || exit $?
	else
		/etc/init.d/cntlm start || exit $?
	fi
fi
# End automatically added section