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
|
||||
|
|
Loading…
Reference in a new issue