X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fconfig;h=c5cc1b5f6d98ebd4af09b39367147779ff7c315c;hb=a452628cc701ed542bbf1272dc48616032acb644;hp=6416f6f61c737862e2ce19504512de77a65c8047;hpb=d88c1a9e47b7892de4eda2a2a3f2494681c70856;p=mod-security-cn.git diff --git a/debian/config b/debian/config index 6416f6f..c5cc1b5 100644 --- a/debian/config +++ b/debian/config @@ -6,10 +6,10 @@ set -e . /usr/share/debconf/confmodule if [ "$1" != reconfigure ]; then - db_fget mod-security-cn/rbl seen - if [ "$RET" = "true" ]; then - exit 0 - fi + db_fget mod-security-cn/rbl seen + if [ "$RET" = "true" ]; then + exit 0 + fi fi A2DIR="/etc/apache2" @@ -25,18 +25,17 @@ MODSECCONF="$MODSECDIR/mod-security-cn.conf" # 2 - file exists, but it is not tagged # chk_conf_tag () { - - local conf_file - conf_file="$1" - RET=1 - - if [ -f "$conf_file" ]; then - if egrep -q "^## Begin - Generated by CARNet package mod-security-cn$" "$conf_file"; then - RET=0 - else - RET=2 - fi + local conf_file + conf_file="$1" + RET=1 + + if [ -f "$conf_file" ]; then + if egrep -q "^## Begin - Generated by CARNet package mod-security-cn$" "$conf_file"; then + RET=0 + else + RET=2 fi + fi } @@ -44,17 +43,15 @@ chk_conf_tag () { # chk_conf_tag "$MODSECCONF" if [ $RET -eq 0 ] || [ $RET -eq 1 ]; then - - # Configuration file is tagged or does not exist - ask user - # for RBL. - db_title mod-security-cn - konfiguracija - db_input critical mod-security-cn/rbl || true - db_go || true + # Configuration file is tagged or does not exist - ask user + # for RBL. + db_title mod-security-cn - konfiguracija + db_input critical mod-security-cn/rbl || true + db_go || true else - - # Configuration file is not tagged - skip question. - db_set mod-security-cn/rbl false || true - db_fset mod-security-cn/rbl seen true + # Configuration file is not tagged - skip question. + db_set mod-security-cn/rbl false || true + db_fset mod-security-cn/rbl seen true fi exit 0