This file is indexed.

postinst is in lighttpd 1.4.28-2ubuntu4.

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
#! /bin/sh -e
# postinst script for lighttpd

if [ "$1" = "configure" ]; then
   	if [ ! -r /var/www/index.lighttpd.html ];
   	then
   		cp /usr/share/lighttpd/index.html /var/www/index.lighttpd.html
	fi
	chown www-data:www-data /var/log/lighttpd
        chown www-data:www-data /var/cache/lighttpd /var/cache/lighttpd/compress /var/cache/lighttpd/uploads
	chmod 0750 /var/log/lighttpd

fi

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


exit 0