[Pkg-sympa-commits] [sympa] 03/07: Fix a bug in postinst while trying to add missing parameters in sympa.conf during upgrade to sympa > 6.0.1 (#691506)

Emmanuel Bouthenot kolter at alioth.debian.org
Thu Oct 3 07:05:48 UTC 2013


This is an automated email from the git hooks/post-receive script.

kolter pushed a commit to branch master
in repository sympa.

commit 1dc44059c0b6201ea0af1f295d521653f03e5799
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Wed Oct 2 21:22:44 2013 +0000

    Fix a bug in postinst while trying to add missing parameters in sympa.conf during upgrade to sympa > 6.0.1 (#691506)
---
 debian/sympa.postinst |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/sympa.postinst b/debian/sympa.postinst
index b638fe5..60eff56 100644
--- a/debian/sympa.postinst
+++ b/debian/sympa.postinst
@@ -111,10 +111,10 @@ perl -pi -e "s/^\s*listmaster.*$/listmaster\t\t$listmaster/;" "$conf"
 
 if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt "6.0.1"; then
 	# add required parameters in Sympa 6
-	if grep -q bounce_warn_rate $conf; then
+	if ! grep -q -e '^bounce_warn_rate' $conf; then
 		echo "bounce_warn_rate 30" >> $conf;
 	fi
-	if grep -q bounce_halt_rate $conf; then
+	if ! grep -q -e '^bounce_halt_rate' $conf; then
 		echo "bounce_halt_rate 50" >> $conf;
 	fi
 	# fix paths

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git



More information about the Pkg-sympa-commits mailing list