Handle amavis upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 23 Apr 2009 11:52:50 +0000 (13:52 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 23 Apr 2009 11:52:50 +0000 (13:52 +0200)
src/functions.sh

index 4620e8a..8e09d21 100644 (file)
@@ -949,7 +949,7 @@ upgrade_amavis () {
   local conf
 
   # remove init script diversion before upgrade
-  if pkg amavisd-cn lt 3:2.4.2-4; then 
+  if pkg amavisd-cn lt 3:2.6.1-1; then 
     if [ -L /etc/init.d/amavis -a -f /etc/init.d/amavis.amavisd-new ]; then
       rm -vf /etc/init.d/amavis
       dpkg-divert --remove /etc/init.d/amavis