Просмотр исходного кода

Update vst-install-amazon.sh

Added backup of /etc/clamd.d/scan.conf after installing clamd because the file is not there before.
cmstew 7 лет назад
Родитель
Сommit
57429a3203
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      install/vst-install-amazon.sh

+ 2 - 1
install/vst-install-amazon.sh

@@ -1132,7 +1132,8 @@ if [ "$clamd" = 'yes' ]; then
     gpasswd -a clam exim
     gpasswd -a clam exim
     gpasswd -a clam mail
     gpasswd -a clam mail
     cp -f $vestacp/clamav/clamd.conf /etc/
     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/
     cp -f $vestacp/clamav/freshclam.conf /etc/
     mkdir -p /var/log/clamav /var/run/clamav
     mkdir -p /var/log/clamav /var/run/clamav
     chown clam:clam /var/log/clamav /var/run/clamav /var/run/clamd.scan
     chown clam:clam /var/log/clamav /var/run/clamav /var/run/clamd.scan