postinst is in libapache2-mod-mapcache 1.6.1-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 | #!/bin/sh
set -e
if [ "$1" = configure ] ; then
if [ -e /var/cache/mapcache ]; then
chown root:www-data /var/cache/mapcache
chmod 775 /var/cache/mapcache
fi
# only enable on new installs, not on upgrades
if [ -z "$2" ] ; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod mapcache
fi
fi
fi
# Automatically added by dh_apache2/UNDECLARED
if true; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
for conf in mapcache ; do
apache2_invoke enmod $conf || exit $?
done
fi
fi
# End automatically added section
|