#!/bin/sh set -e PKG=roundcube-cn if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then . /usr/share/apache2/apache2-maintscript-helper roundcube_enable() { echo "CN: Disabling $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" = "remove" ] || [ "$1" = "deconfigure" ]; then if [ -f /etc/roundcube/apache.conf ]; then cp-update -r $PKG /etc/roundcube/apache.conf fi if roundcube_enable; then apache2_invoke disconf $PKG fi fi #DEBHELPER# exit 0