mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:35:06 +08:00
installer updates
none
This commit is contained in:
parent
3566da77d0
commit
8718988015
6 changed files with 3 additions and 23 deletions
1
debian/DEBIAN/postinst
vendored
1
debian/DEBIAN/postinst
vendored
|
@ -152,6 +152,7 @@ if [ -f /etc/MailScanner/MailScanner.conf.original -a -f /etc/MailScanner/MailSc
|
|||
ms-upgrade-conf /etc/MailScanner/MailScanner.conf.original /etc/MailScanner/MailScanner.conf.dist > /etc/MailScanner/MailScanner.conf
|
||||
mkdir -p ${SAVEDIR}/etc/MailScanner
|
||||
mv -f /etc/MailScanner/MailScanner.conf.* ${SAVEDIR}/etc/MailScanner > /dev/null 2>&1
|
||||
cp -f /etc/MailScanner/MailScanner.conf ${SAVEDIR}/etc/MailScanner/MailScanner.new > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# update web bug link
|
||||
|
|
1
debian/DEBIAN/preinst
vendored
1
debian/DEBIAN/preinst
vendored
|
@ -89,7 +89,6 @@ if [ -L '/etc/MailScanner/custom' ]; then
|
|||
fi
|
||||
|
||||
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
|
||||
mkdir -p ${SAVEDIR}/etc/MailScanner
|
||||
cp -f /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.original
|
||||
fi
|
||||
exit 0
|
16
debian/install.sh
vendored
16
debian/install.sh
vendored
|
@ -393,22 +393,6 @@ done
|
|||
# will pause if a perl module was missing
|
||||
timewait $PMODWAIT
|
||||
|
||||
# save the old MailScanner.conf
|
||||
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
|
||||
cp /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.save.$$
|
||||
fi
|
||||
|
||||
# remove old versions
|
||||
if [ -d /etc/MailScanner ]; then
|
||||
dpkg-query -l mailscanner > /dev/null 2>&1
|
||||
|
||||
RETVAL="$?"
|
||||
|
||||
if [ $RETVAL -eq 0 ]; then
|
||||
apt-get -y remove mailscanner
|
||||
fi
|
||||
fi
|
||||
|
||||
clear
|
||||
echo;
|
||||
echo "Installing the MailScanner .deb package ... ";
|
||||
|
|
|
@ -394,6 +394,7 @@ if [ -f /etc/MailScanner/MailScanner.conf.original -a -f /etc/MailScanner/MailSc
|
|||
ms-upgrade-conf /etc/MailScanner/MailScanner.conf.original /etc/MailScanner/MailScanner.conf.dist > /etc/MailScanner/MailScanner.conf
|
||||
mkdir -p ${SAVEDIR}/etc/MailScanner
|
||||
mv -f /etc/MailScanner/MailScanner.conf.* ${SAVEDIR}/etc/MailScanner > /dev/null 2>&1
|
||||
cp -f /etc/MailScanner/MailScanner.conf ${SAVEDIR}/etc/MailScanner/MailScanner.new > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# update web bug link
|
||||
|
|
|
@ -446,11 +446,6 @@ if [ -f '/etc/freshclam.conf' ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# save the old MailScanner.conf
|
||||
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
|
||||
mv /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.save.$$
|
||||
fi
|
||||
|
||||
clear
|
||||
echo;
|
||||
echo "Installing the MailScanner RPM ... ";
|
||||
|
|
|
@ -306,7 +306,6 @@ if [ -d '/usr/share/MailScanner/MailScanner' ]; then
|
|||
fi
|
||||
|
||||
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
|
||||
mkdir -p ${SAVEDIR}/etc/MailScanner
|
||||
cp -f /etc/MailScanner/MailScanner.conf /etc/MailScanner/MailScanner.conf.original
|
||||
fi
|
||||
|
||||
|
@ -412,6 +411,7 @@ if [ -f /etc/MailScanner/MailScanner.conf.original -a -f /etc/MailScanner/MailSc
|
|||
ms-upgrade-conf /etc/MailScanner/MailScanner.conf.original /etc/MailScanner/MailScanner.conf.dist > /etc/MailScanner/MailScanner.conf
|
||||
mkdir -p ${SAVEDIR}/etc/MailScanner
|
||||
mv -f /etc/MailScanner/MailScanner.conf.* ${SAVEDIR}/etc/MailScanner > /dev/null 2>&1
|
||||
cp -f /etc/MailScanner/MailScanner.conf ${SAVEDIR}/etc/MailScanner/MailScanner.new > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# update web bug link
|
||||
|
|
Loading…
Reference in a new issue