debian update

none
This commit is contained in:
Jerry.Benton 2016-05-23 02:16:40 -04:00
parent abd714fc03
commit 66254debf4
2 changed files with 4 additions and 3 deletions

View file

@ -169,8 +169,8 @@ fi
# upgrade the old config
if [ -f /etc/MailScanner/MailScanner.conf.upgrade -a -f /etc/MailScanner/MailScanner.conf ]; then
ms-upgrade-conf /etc/MailScanner/MailScanner.conf.upgrade /etc/MailScanner/MailScanner.conf > /etc/MailScanner/MailScanner.new
mv -f /etc/MailScanner/MailScanner.new /etc/MailScanner/MailScanner.conf
ms-upgrade-conf /etc/MailScanner/MailScanner.conf.upgrade /etc/MailScanner/MailScanner.conf > /etc/MailScanner/MailScanner.conf.new
cp -f /etc/MailScanner/MailScanner.conf.new /etc/MailScanner/MailScanner.conf
mkdir -p ${SAVEDIR}/etc/MailScanner
mv -f /etc/MailScanner/MailScanner.conf.* ${SAVEDIR}/etc/MailScanner > /dev/null 2>&1
fi

View file

@ -89,6 +89,7 @@ if [ -L '/etc/MailScanner/custom' ]; then
fi
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
cp /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.upgrade
mkdir -p ${SAVEDIR}/etc/MailScanner
cp -f /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.upgrade
fi
exit 0