Prva inacica paketa za Debian jessie distribuciju.
[webalizer-cn.git] / debian / prerm
diff --git a/debian/prerm b/debian/prerm
new file mode 100755 (executable)
index 0000000..81704a8
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+set -e
+
+PKG="webalizer-cn"
+
+if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
+    . /usr/share/apache2/apache2-maintscript-helper
+
+    webalizer_enable() {
+        echo "CN: Disabling $PKG configuration for Apache2."
+        return 0
+    }
+else
+    echo "CN: Could not load Apache 2.4 maintainer script helper."
+
+    webalizer_enable() {
+        return 1
+    }
+fi
+
+webalizer_error() {
+    echo "CN: Error while trying to disable $PKG configuration for Apache2."
+}
+
+#DEBHELPER#
+
+if ! apache2ctl configtest >/dev/null 2>&1; then
+    echo "CN: Your Apache2 configuration seems to be broken."
+    echo "CN: Please, check the service and system logs!"
+fi
+
+exit 0