This file is indexed.

postinst is in mini-httpd 1.23-1.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
#!/bin/sh
set -e

if [ "$1" = "configure" ] && dpkg --compare-versions "1.19-9.3" gt "$2"
then
    dpkg-divert --package mini-httpd --rename --remove /usr/share/man/man1/htpasswd.1.gz
    dpkg-divert --package mini-httpd --rename --remove /usr/bin/htpasswd
fi

if [ ! -r /var/www/html/index.mini-httpd.html ]; then
    mkdir -p /var/www/html
    cp /usr/share/mini-httpd/html/index.html /var/www/html/index.mini-httpd.html
fi

# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/mini-httpd" ]; then
		update-rc.d mini-httpd defaults >/dev/null
		invoke-rc.d mini-httpd start || exit $?
	fi
fi
# End automatically added section