Prva inacica paketa za Debian jessie distribuciju.
[squirrelmail-cn.git] / debian / prerm
1 #!/bin/sh
2
3 set -e
4
5 PKG=squirrelmail-cn
6
7 if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
8     . /usr/share/apache2/apache2-maintscript-helper
9
10     squirrelmail_enable() {
11         echo "CN: Disabling $PKG configuration for Apache2."
12         return 0
13     }
14 else
15     echo "CN: Could not load Apache 2.4 maintainer script helper."
16
17     squirrelmail_enable() {
18         return 1
19     }
20 fi
21
22 if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
23     if [ -f /etc/squirrelmail/apache.conf ]; then
24         cp-update -r $PKG /etc/squirrelmail/apache.conf
25     fi
26
27     if squirrelmail_enable; then
28         apache2_invoke disconf $PKG
29     fi
30 fi
31
32 #DEBHELPER#
33
34 exit 0