Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2865 → Rev 2864

/alcasar.sh
1366,9 → 1366,7
$SED "s?^#LogTime.*?LogTime yes?g" /etc/clamd.conf # enable logtime for each message
$SED "s?^LogVerbose.*?LogVerbose no?g" /etc/clamd.conf
$SED "s?^#LogRotate.*?LogRotate yes?g" /etc/clamd.conf
$SED "s?^User.*?User e2guardian?g" /etc/clamd.conf
$SED "s?^TemporaryDirectory.*?TemporaryDirectory /var/lib/e2guardian/tmp?g" /etc/clamd.conf
chown -R e2guardian:e2guardian /var/log/clamav /var/lib/clamav
chown -R clamav:clamav /var/log/clamav /var/lib/clamav
chmod 775 /var/log/clamav /var/lib/clamav
chmod 664 /var/log/clamav/*
# update virus database every 4 hours (24h/6)
1375,7 → 1373,6
[ -e /etc/freshclam.conf.default ] || cp /etc/freshclam.conf /etc/freshclam.conf.default
$SED "s?^Checks.*?Checks 6?g" /etc/freshclam.conf
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
$SED "s?^DatabaseOwner.*?DatabaseOwner e2guardian?g" /etc/freshclam.conf
$SED "/^DatabaseMirror/a DatabaseMirror db.fr.clamav.net" /etc/freshclam.conf
$SED "s?^MaxAttempts.*?MaxAttempts 3?g" /etc/freshclam.conf
# update now
1966,9 → 1963,9
/etc/pki/CA/private/* root.root 600 force
/etc/pki/tls/private/ root.apache 750 force
/etc/pki/tls/private/* root.apache 640 force
/var/log/clamav/ e2guardian.e2guardian 755 force
/var/log/clamav/* e2guardian.e2guardian 764 force
/var/lib/clamav/ e2guardian.e2guardian 755 force
/var/log/clamav/ clamav.clamav 755 force
/var/log/clamav/* clamav.clamav 764 force
/var/lib/clamav/ clamav.clamav 755 force
EOF
# apply now hourly & daily checks
/usr/sbin/msec