Skip to content
This repository
Browse code

added a notification regarding configuration file

  • Loading branch information...
commit 555d12ece47f4b1994ed0de681989428f364e649 1 parent 3d00eec
Yaroslav Halchenko yarikoptic authored

Showing 2 changed files with 28 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 debian/changelog
  2. +21 0 debian/postinst
7 debian/changelog
... ... @@ -1,3 +1,10 @@
  1 +fail2ban (0.5.4-5post1) unstable; urgency=low
  2 +
  3 + * Added a notification regarding the importance of 0.5.4-5 change of
  4 + failregex in the config file
  5 +
  6 + -- Yaroslav Halchenko <debian@onerussian.com> Mon, 3 Oct 2005 22:26:28 -1000
  7 +
1 8 fail2ban (0.5.4-5) unstable; urgency=low
2 9
3 10 * Made failregex'es more specific to don't allow usernames to be used as a
21 debian/postinst
@@ -16,12 +16,33 @@ set -e
16 16 # for details, see http://www.debian.org/doc/debian-policy/ or
17 17 # the debian-policy package
18 18 #
  19 +preversion=$2
19 20
20 21 case "$1" in
21 22 configure)
22 23 # To fix the bug in generated by previous version files permissions
23 24 LOG=/var/log/fail2ban.log
24 25 [ -f $LOG ] && chmod go-w $LOG
  26 +
  27 + # Note regarding changed configuration file
  28 + if [ ! -z $preversion ] \
  29 + && dpkg --compare-versions $preversion lt 0.5.4-5;
  30 + then
  31 + cat <<EOF
  32 +WARNING!
  33 + Configuration file /etc/fail2ban.conf, failregex configuration parameter
  34 + specificly, were changed in 0.5.4-5 to close reported security breach.
  35 +
  36 + Unless configuration file (or corresponding failregex'es) gets updated,
  37 + security breach is not closed and corresponding warning will be reported
  38 + by the fail2ban (in the log files).
  39 +
  40 + Please review the configuration file and make appropriate changes.
  41 +ENJOY!
  42 +
  43 +EOF
  44 + fi
  45 +
25 46 ;;
26 47
27 48 abort-upgrade|abort-remove|abort-deconfigure)

0 comments on commit 555d12e

Please sign in to comment.
Something went wrong with that request. Please try again.