From 28dad3752c8c18aa2fa354d817de4d5ed2589d23 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 6 Nov 2006 14:47:59 +0000 Subject: [PATCH] * 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/changelog | 3 +++ debian/postinst | 22 +++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index b2912063..af27b6e4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 6 Nov 2006 09:18:58 -0500 diff --git a/debian/postinst b/debian/postinst index 5ef9f91b..bc7b1aec 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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 <