Update vst-install-amazon.sh

- Cleaned up changes
- Removed unnecessary clamd code from Centos installer
This commit is contained in:
cmstew 2019-01-02 08:18:06 -07:00 committed by GitHub
commit 9f671ccf90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/