projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f42a852
)
Disable old amavis config during upgrade.
author
Valentin Vidic
<vvidic@carnet.hr>
Tue, 1 Apr 2008 09:43:58 +0000
(11:43 +0200)
committer
Valentin Vidic
<vvidic@carnet.hr>
Tue, 1 Apr 2008 09:43:58 +0000
(11:43 +0200)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
f1fbc02
..
b0ebdb3
100644
(file)
--- 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