Update vst-install-amazon.sh

Keep /etc/clamd.conf as main file and link to it instead of using /etc/clamd.d/scan.conf.
This commit is contained in:
cmstew 2019-01-05 13:02:23 -07:00 committed by GitHub
commit 3881e36967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1125,7 +1125,8 @@ if [ "$clamd" = 'yes' ]; then
gpasswd -a clam exim gpasswd -a clam exim
gpasswd -a clam mail gpasswd -a clam mail
cp -r /etc/clamd.d $vst_backups/clamd >/dev/null 2>&1 cp -r /etc/clamd.d $vst_backups/clamd >/dev/null 2>&1
cp -f $vestacp/clamav/clamd.conf /etc/clamd.d/scan.conf cp -f $vestacp/clamav/clamd.conf /etc/clamd.conf
ln -sf /etc/clamd.conf /etc/clamd.d/scan.conf
cp -f $vestacp/clamav/freshclam.conf /etc/ cp -f $vestacp/clamav/freshclam.conf /etc/
mkdir -p /var/log/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 clam:clam /var/log/clamav /var/run/clamd.scan