preinst 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 | #!/bin/bash
# Maintainer:
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
if [ -f /var/lib/lemonldap-ng/portal/index.pl ]; then \
diff /var/lib/lemonldap-ng/portal/index.pl \
/usr/share/doc/liblemonldap-ng-portal-perl/examples/index_skin.pl && \
rm -rf /var/lib/lemonldap-ng/portal/index.pl
fi
fi
|