From a4fb6e2faae3c448c19ffe68bca18491f02b8965 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Tue, 1 Apr 2008 11:43:58 +0200 Subject: [PATCH] Disable old amavis config during upgrade. --- src/functions.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index f1fbc02..b0ebdb3 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -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 -- 1.7.10.4