6 . /usr/share/debconf/confmodule
8 if [ "$1" != reconfigure ]; then
9 db_fget mod-security-cn/rbl seen
10 if [ "$RET" = "true" ]; then
16 MODSECDIR="$A2DIR/mod-security"
17 MODSECCONF="$MODSECDIR/mod-security-cn.conf"
22 # Check if configuration file has CARNet package info lines.
23 # return: $RET => 0 - tagged
24 # 1 - file does not exists
25 # 2 - file exists, but it is not tagged
32 if [ -f "$conf_file" ]; then
33 if egrep -q "^## Begin - Generated by CARNet package mod-security-cn$" "$conf_file"; then
42 # Check for CARNet ModSecurity configuration file.
44 chk_conf_tag "$MODSECCONF"
45 if [ $RET -eq 0 ] || [ $RET -eq 1 ]; then
46 # Configuration file is tagged or does not exist - ask user
48 db_title mod-security-cn - konfiguracija
49 db_input critical mod-security-cn/rbl || true
52 # Configuration file is not tagged - skip question.
53 db_set mod-security-cn/rbl false || true
54 db_fset mod-security-cn/rbl seen true