Disable old amavis config during upgrade.
authorValentin Vidic <vvidic@carnet.hr>
Tue, 1 Apr 2008 09:43:58 +0000 (11:43 +0200)
committerValentin Vidic <vvidic@carnet.hr>
Tue, 1 Apr 2008 09:43:58 +0000 (11:43 +0200)
src/functions.sh

index f1fbc02..b0ebdb3 100644 (file)
@@ -667,10 +667,11 @@ upgrade_amavis () {
   fi
 
   # move old config aside
-  conf=/etc/amavis/amavisd.conf
-  if [ -e $conf -a ! -e $conf.$backup_ext ]; then
-    mv -v $conf $conf.$backup_ext
-  fi
+  for conf in /etc/amavisd.conf /etc/amavis/amavisd.conf; do
+    if [ -e $conf -a ! -e $conf.$backup_ext ]; then
+      mv -v $conf $conf.$backup_ext
+    fi
+  done
 
   # install new packages
   pkgadd amavisd-cn amavisd-new