This file is indexed.

preinst is in voms-server 2.1.0~rc0-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
14
15
16
#!/bin/sh

set -e

# Version 2.1.0~rc0-4 starts using defaults-disabled
# Remove rc.d links if upgrading from an older version and the service is
# disabled in /etc/default

if [ -n "$2" ] ; then
	if dpkg --compare-versions "$2" "<<" "2.1.0~rc0-4" ; then
		[ -r /etc/default/voms ] && . /etc/default/voms
		if [ -n "${RUN}" ] && [ "${RUN}" != "yes" ] ; then
			update-rc.d -f voms remove >/dev/null
		fi
	fi
fi