mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:35:06 +08:00
debian update
none
This commit is contained in:
parent
abd714fc03
commit
66254debf4
2 changed files with 4 additions and 3 deletions
4
debian/DEBIAN/postinst
vendored
4
debian/DEBIAN/postinst
vendored
|
@ -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
|
||||
|
|
3
debian/DEBIAN/preinst
vendored
3
debian/DEBIAN/preinst
vendored
|
@ -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
|
Loading…
Reference in a new issue