* Warning NEWS entry for 0.7.1 was not shown during installation on test

boxes, thus postinst was adjusted accordingly to inform the user about the
  changes in the configuration files since 0.6.
debian-releases/etch
Yaroslav Halchenko 2006-11-06 14:47:59 +00:00
parent 6e1ec60318
commit 28dad3752c
2 changed files with 22 additions and 3 deletions

3
debian/changelog vendored
View File

@ -2,6 +2,9 @@ fail2ban (0.7.4-2) unstable; urgency=low
* Added reload/force-reload actions to init script
* Adjusted jail.conf a bit
* Warning NEWS entry for 0.7.1 was not shown during installation on test
boxes, thus postinst was adjusted accordingly to inform the user about the
changes in the configuration files since 0.6.
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 6 Nov 2006 09:18:58 -0500

22
debian/postinst vendored
View File

@ -29,9 +29,25 @@ case "$1" in
chmod 640 ${LOG}*
# Note regarding changed configuration file
if [ ! -z $preversion ] \
&& dpkg --compare-versions $preversion lt 0.5.4-5.14;
then
# Note regarding changed configuration file
if [ ! -z $preversion ]; then
if dpkg --compare-versions $preversion lt 0.7.1-1; then
cat <<EOF
WARNING!
0.7.x versions of fail2ban is a complete rewrite of the tool since 0.6, and
it went through restructuring of the configuration files. If you had
adjusted config file /etc/fail2ban.conf or /etc/defaults/fail2ban, you need
to adjust new config files (under /etc/fail2ban/ and /etc/default/fail2ban)
to take advantage of the upgrade. Now fail2ban uses split configs and local
modifications can be introduced in corresponding .local files. Please
remove old configuration file /etc/fail2ban.conf thereafter.
Please review the configuration file and make appropriate changes.
ENJOY!
EOF
fi
if dpkg --compare-versions $preversion lt 0.5.4-5.14; then
cat <<EOF
WARNING!