6 . /usr/share/debconf/confmodule
10 MODSECLNK=/etc/apache2/conf-available/security2-cn.conf
14 # Check if configuration file has CARNET package info lines.
15 # return: $RET => 0 - tagged
16 # 1 - file does not exists
17 # 2 - file exists, but it is not tagged
24 if [ -f "$conf_file" ]; then
25 if egrep -q "^## Begin - Generated by CARNET package mod-security-cn$" "$conf_file"; then
33 if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
34 . /usr/share/apache2/apache2-maintscript-helper
36 modsecurity_enable() {
37 chk_conf_tag "$MODSECLNK"
38 if [ $RET -ne 2 ]; then
39 echo "CN: Purging $PKG configuration for Apache2."
45 echo "CN: Could not load Apache 2.4 maintainer script helper."
47 modsecurity_enable() {
52 if [ "$1" = "purge" ] ; then
53 if modsecurity_enable; then
54 apache2_invoke disconf security2-cn