#!/bin/sh set -e # Debconf . /usr/share/debconf/confmodule PKG=roundcube-cn if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then . /usr/share/apache2/apache2-maintscript-helper roundcube_enable() { echo "CN: Purging $PKG configuration for Apache2." return 0 } else echo "CN: Could not load Apache 2.4 maintainer script helper." roundcube_enable() { return 1 } fi if [ "$1" = "purge" ] ; then if roundcube_enable; then apache2_invoke disconf $PKG fi if [ "`readlink -q -m /etc/apache2/conf-available/$PKG.conf`" = /etc/roundcube/apache.conf ]; then rm -f /etc/apache2/conf-available/$PKG.conf fi fi #DEBHELPER# exit 0