#!/bin/sh set -e case "$1" in remove|deconfigure) cp-update -r squirrelmail-cn /etc/squirrelmail/apache.conf if [ -f /etc/apache2/conf.d/squirrelmail-cn.conf ]; then rm -f /etc/apache2/conf.d/squirrelmail-cn.conf fi # Restart Apache2 web server. # if [ -x "/etc/init.d/apache2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d apache2 force-reload || exit $? else /etc/init.d/apache2 force-reload || exit $? fi fi break ;; upgrade) : ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \$1'" >&2 exit 0 ;; esac exit 0