Jelajahi Sumber

Hide freshclam update and add Updating ClamAV comment.

Raphael Schneeberger 7 tahun lalu
induk
melakukan
cf5b66ba84
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 2 1
      install/hst-install-debian.sh
  2. 2 1
      install/hst-install-ubuntu.sh

+ 2 - 1
install/hst-install-debian.sh

@@ -1188,7 +1188,6 @@ if [ "$clamd" = 'yes' ]; then
     gpasswd -a clamav mail
     gpasswd -a clamav Debian-exim
     cp -f $hestiacp/clamav/clamd.conf /etc/clamav/
-    /usr/bin/freshclam
     update-rc.d clamav-daemon defaults
     if [ ! -d "/var/run/clamav" ]; then
         mkdir /var/run/clamav
@@ -1202,6 +1201,8 @@ if [ "$clamd" = 'yes' ]; then
         systemctl daemon-reload
     fi
     service clamav-daemon start
+    echo "Updating ClamAV..."
+    /usr/bin/freshclam  > /dev/null 2>&1
     check_result $? "clamav-daeom start failed"
 fi
 

+ 2 - 1
install/hst-install-ubuntu.sh

@@ -1198,9 +1198,10 @@ if [ "$clamd" = 'yes' ]; then
     gpasswd -a clamav mail
     gpasswd -a clamav Debian-exim
     cp -f $hestiacp/clamav/clamd.conf /etc/clamav/
-    /usr/bin/freshclam
     update-rc.d clamav-daemon defaults
     service clamav-daemon start
+    echo "Updating ClamAV..."
+    /usr/bin/freshclam  > /dev/null 2>&1
     check_result $? "clamav-daemon start failed"
 fi