From: Valentin Vidic Date: Fri, 18 Oct 2013 10:41:32 +0000 (+0200) Subject: Conditional mailman upgrade. X-Git-Tag: debian/7.0.1~2 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=d0c4bd1d1ddee4d6d64ef91e3a84b46373ac5ddb;p=carnet-upgrade.git Conditional mailman upgrade. --- 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 () {