Handle mailman upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Fri, 18 Oct 2013 06:50:55 +0000 (08:50 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Fri, 18 Oct 2013 09:03:41 +0000 (11:03 +0200)
src/actions/main.queue
src/functions.sh

index 127674e..bca50ee 100644 (file)
@@ -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
index 0ff3ca7..051b34c 100644 (file)
@@ -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