From d0c4bd1d1ddee4d6d64ef91e3a84b46373ac5ddb Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Fri, 18 Oct 2013 12:41:32 +0200 Subject: [PATCH] Conditional mailman upgrade. --- src/functions.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index 051b34c..0e12ecb 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -1001,9 +1001,11 @@ upgrade_fail2ban() { # manual upgrade of mailman to avoid two copies of mailman running # first started by python upgrade and second started by mailman itself upgrade_mailman() { - /etc/init.d/mailman stop || true - pkgadd python - pkgadd mailman mailman-cn + if pkg mailman-cn lt 2:2.1.15~cn0; then + /etc/init.d/mailman stop || true + pkgadd python + pkgadd mailman mailman-cn + fi } get_variable () { -- 1.7.10.4