mirror of
https://github.com/MailScanner/v5.git
synced 2024-09-20 15:26:08 +08:00
update
none
This commit is contained in:
parent
ab96cea85a
commit
f4b23c92e4
|
@ -859,9 +859,9 @@ ClamAVmodule Maximum Compression Ratio = 250
|
|||
# None of these options can be the filenames of rulesets, they must be just
|
||||
# simple values.
|
||||
Clamd Port = 3310
|
||||
Clamd Socket = /tmp/clamd.socket
|
||||
Clamd Socket = /var/run/clamav/clamd.sock
|
||||
Clamd Lock File = # /var/lock/subsys/clamd
|
||||
Clamd Use Threads = no
|
||||
Clamd Use Threads = yes
|
||||
|
||||
# There are now sets of signatures available from places such as
|
||||
# www.sanesecurity.co.uk which use ClamAV to detect spam. Some of these
|
||||
|
|
14
debian/DEBIAN/postinst
vendored
14
debian/DEBIAN/postinst
vendored
|
@ -212,6 +212,20 @@ if [ -d '/etc/clamav' ]; then
|
|||
|
||||
fi
|
||||
|
||||
# set the correct sock for debian systems
|
||||
CAVOLD='^Clamd Socket.*';
|
||||
CAVNEW='Clamd Socket = \/var\/run\/clamav\/clamd\.ctl';
|
||||
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
|
||||
sed -i "s/${CAVOLD}/${CAVNEW}/g" /etc/MailScanner/MailScanner.conf
|
||||
fi
|
||||
|
||||
# set the correct lock file for debian systems
|
||||
CAVOLD='^Clamd Lock File.*';
|
||||
CAVNEW='Clamd Lock File = \/var\/run\/clamav\/clamd\.pid';
|
||||
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
|
||||
sed -i "s/${CAVOLD}/${CAVNEW}/g" /etc/MailScanner/MailScanner.conf
|
||||
fi
|
||||
|
||||
# postfix fix
|
||||
if [ -f "/etc/postfix/master.cf" ]; then
|
||||
sed -i "s/pickup unix/pickup fifo/g" /etc/postfix/master.cf
|
||||
|
|
|
@ -72,7 +72,7 @@ echo "via the Yum package manager. Supported distributions are RHEL 5,6,7 and as
|
|||
echo "variants such as CentOS and Scientific Linux. Internet connectivity is required for";
|
||||
echo "this installation script to execute. "; echo;
|
||||
echo;
|
||||
echo " WARNING - Make a backup of any custom configuration files if upgrading - WARNING";
|
||||
echo "WARNING - Make a backup of any custom configuration files if upgrading - WARNING";
|
||||
echo;
|
||||
echo "You may press CTRL + C at any time to abort the installation. Note that you may see";
|
||||
echo "some errors during the perl module installation. You may safely ignore errors regarding";
|
||||
|
|
Loading…
Reference in a new issue