|
|
@@ -1124,12 +1124,11 @@ if [ "$clamd" = 'yes' ]; then
|
|
|
useradd clam -s /sbin/nologin -d /var/lib/clamav 2>/dev/null
|
|
|
gpasswd -a clam exim
|
|
|
gpasswd -a clam mail
|
|
|
- cp -f $vestacp/clamav/clamd.conf /etc/
|
|
|
cp -r /etc/clamd.d $vst_backups/clamd >/dev/null 2>&1
|
|
|
- ln -sf /etc/clamd.conf /etc/clamd.d/scan.conf
|
|
|
+ cp -f $vestacp/clamav/clamd.conf /etc/clamd.d/scan.conf
|
|
|
cp -f $vestacp/clamav/freshclam.conf /etc/
|
|
|
- mkdir -p /var/log/clamav /var/run/clamav
|
|
|
- chown clam:clam /var/log/clamav /var/run/clamav /var/run/clamd.scan
|
|
|
+ mkdir -p /var/log/clamav /var/run/clamd.scan
|
|
|
+ chown clam:clam /var/log/clamav /var/run/clamd.scan
|
|
|
chown -R clam:clam /var/lib/clamav
|
|
|
if [ "$release" -ge '7' ]; then
|
|
|
cp -f $vestacp/clamav/clamd.service /usr/lib/systemd/system/
|