6 . /usr/share/debconf/confmodule
10 if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
11 . /usr/share/apache2/apache2-maintscript-helper
13 squirrelmail_enable() {
14 echo "CN: Purging $PKG configuration for Apache2."
18 echo "CN: Could not load Apache 2.4 maintainer script helper."
20 squirrelmail_enable() {
25 if [ "$1" = "remove" -o "$1" = "abort-install" -o "$1" = "disappear" ]; then
26 dpkg-divert --package $PKG --remove --rename \
27 --divert /usr/share/squirrelmail/functions/strings.php.squirrelmail \
28 /usr/share/squirrelmail/functions/strings.php
31 if [ "$1" = "purge" ] ; then
32 if squirrelmail_enable; then
33 apache2_invoke disconf $PKG
36 if [ "`readlink -q -m /etc/apache2/conf-available/$PKG.conf`" = /etc/squirrelmail/apache.conf ]; then
37 rm -f /etc/apache2/conf-available/$PKG.conf