6 . /usr/share/debconf/confmodule
8 if [ "$1" != reconfigure ]; then
9 db_fget mod-security-cn/rbl seen
10 if [ "$RET" = "true" ]; then
16 CONFDIR="$A2DIR/conf.d"
17 MODSECCONF="$CONFDIR/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
33 if [ -f "$conf_file" ]; then
34 if egrep -q "^## Begin - Generated by CARNet package mod-security-cn$" "$conf_file"; then
43 # Check for CARNet ModSecurity configuration file.
45 chk_conf_tag "$MODSECCONF"
46 if [ $RET -eq 0 ] || [ $RET -eq 1 ]; then
48 # Configuration file is tagged or does not exist - ask user
50 db_title mod-security-cn - konfiguracija
51 db_input critical mod-security-cn/rbl || true
55 # Configuration file is not tagged - skip question.
56 db_set mod-security-cn/rbl false || true
57 db_fset mod-security-cn/rbl seen true