postinst is in liblemonldap-ng-portal-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 22 23 24 25 26 27 28 29 30 | #!/bin/bash
# Maintainer:
set -e
. /usr/share/debconf/confmodule
REFDIR=/usr/share/lemonldap-ng/portal/
RUNDIR=/var/lib/lemonldap-ng/portal/
FILES=$(find $REFDIR -name '*pl' -printf "%f ")
SESSIONSDIR=/var/lib/lemonldap-ng/sessions
BUILDPORTALWSDL=/usr/share/lemonldap-ng/bin/buildPortalWSDL
WSDLFILE=/var/lib/lemonldap-ng/portal/portal.wsdl
if [ "$1" == "configure" ]
then
for file in $FILES; do
[ -e "$RUNDIR$file" ] || ln -s $REFDIR$file $RUNDIR$file
done
chmod 770 $SESSIONSDIR
chmod 770 $SESSIONSDIR/lock
chown -R www-data:www-data $SESSIONSDIR
$BUILDPORTALWSDL > $WSDLFILE || true
[ -d /etc/apache2/sites-available/ ] && \
[ ! -e /etc/apache2/sites-available/portal-apache2.conf ] && \
ln -s /etc/lemonldap-ng/portal-apache2.conf /etc/apache2/sites-available/portal-apache2.conf \
|| true
fi
|