From 57429a3203d38101d9f87d70bdc3dfcdec0b6645 Mon Sep 17 00:00:00 2001 From: cmstew Date: Fri, 28 Dec 2018 15:59:21 -0700 Subject: [PATCH] Update vst-install-amazon.sh Added backup of /etc/clamd.d/scan.conf after installing clamd because the file is not there before. --- install/vst-install-amazon.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/vst-install-amazon.sh b/install/vst-install-amazon.sh index dd506480e..50e64ecbb 100644 --- a/install/vst-install-amazon.sh +++ b/install/vst-install-amazon.sh @@ -1132,7 +1132,8 @@ if [ "$clamd" = 'yes' ]; then gpasswd -a clam exim gpasswd -a clam mail cp -f $vestacp/clamav/clamd.conf /etc/ - ln -s /etc/clamd.conf /etc/clamd.d/scan.conf + 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/freshclam.conf /etc/ mkdir -p /var/log/clamav /var/run/clamav chown clam:clam /var/log/clamav /var/run/clamav /var/run/clamd.scan