This file is indexed.

postinst is in nagios-snmp-plugins 1.1.1-7.

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

templdir=/usr/share/nagios-snmp-plugins/pluginconfig

if [ "$1" = "configure" ]; then
	if [ -f /usr/share/nagios-plugins/dpkg/functions ]; then
		# only working with nagios-plugins-basic (>= 1.4.5-2)
		. /usr/share/nagios-plugins/dpkg/functions
		register_cfgs $2
	else
		# to get working with etch
		(
			cd $templdir
			for f in *cfg; do
				ucf $f /etc/nagios-plugins/config/$f
			done
		);
	fi
fi



exit 0