This file is indexed.

postinst is in postgresql-9.1-postgis 1.5.3-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
#!/bin/sh

set -e

# Creates a link for the shared lib in the postgres area
if [ "$1" = "configure" ]; then
	if [ -f /usr/lib/postgis/1.5.3/postgres/9.1/lib/postgis-1.5.so ]; then
		ln -f /usr/lib/postgis/1.5.3/postgres/9.1/lib/postgis-1.5.so \
		      /usr/lib/postgresql/9.1/lib/postgis-1.5.so
	else
		echo "Postgis extension not found, something wrong did probably happen"
	fi
fi



exit 0