From 33647acc9accaf03069681d6d8a4524aca1bd85d Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Fri, 18 Oct 2013 08:50:55 +0200 Subject: [PATCH] Handle mailman upgrade. --- src/actions/main.queue | 1 + src/functions.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/actions/main.queue b/src/actions/main.queue index 127674e..bca50ee 100644 --- a/src/actions/main.queue +++ b/src/actions/main.queue @@ -38,6 +38,7 @@ pkg postfix-cn upgrade_postfix pkg dovecot-cn upgrade_dovecot pkg bind9-cn upgrade_bind pkg fail2ban-cn upgrade_fail2ban +pkg mailman-cn upgrade_mailman true upgrade_postgresql true upgrade first # neki paketi moraju rucno true upgrade second # neke pakete zelimo ranije diff --git a/src/functions.sh b/src/functions.sh index 0ff3ca7..051b34c 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -998,6 +998,14 @@ upgrade_fail2ban() { fi } +# 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 +} + get_variable () { local name=$1 file=$2 val -- 1.7.10.4