This file is indexed.

postinst is in liblemonldap-ng-manager-perl 1.1.2-1.

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
#!/bin/bash
# Maintainer: 

set -e

. /usr/share/debconf/confmodule

REFDIR=/usr/share/lemonldap-ng/manager/
RUNDIR=/var/lib/lemonldap-ng/manager/
FILES=$(find $REFDIR -name '*pl' -printf "%f ")

if [ "$1" == "configure" ]
then
	for file in $FILES; do
		[ -e "$RUNDIR$file" ] || ln -s $REFDIR$file $RUNDIR$file
	done
	[ -d /etc/apache2/sites-available/ ] && \
		[ ! -e /etc/apache2/sites-available/manager-apache2.conf ] && \
		ln -s /etc/lemonldap-ng/manager-apache2.conf /etc/apache2/sites-available/manager-apache2.conf \
		|| true
fi