This file is indexed.

postinst is in ekg2 1:0.3.1-4.

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
#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
	docdir="/usr/share/doc/ekg2"
	# /usr/share/doc/ekg2 was shipped as a directory in ekg2-core by
	# mistake in 1:0.3.1-1 (#685469). dpkg does not fix this automatically
	# on upgrades, we need to do it manually here.
	if [ ! -L "$docdir" ] && [ -d "$docdir" ]; then
		rmdir "$docdir"
		ln -s "ekg2-core" "$docdir"
	fi
fi