Browse Source

Added freshclam

old-stable
gau1991 10 years ago
parent
commit
10fb30bfef
  1. 8
      src/modules/stack/install/mail/ee_mod_setup_mailscan.sh

8
src/modules/stack/install/mail/ee_mod_setup_mailscan.sh

@ -29,4 +29,12 @@ function ee_mod_setup_mailscan()
adduser clamav amavis &>> $EE_COMMAND_LOG
adduser amavis clamav &>> $EE_COMMAND_LOG
chmod -R 775 /var/lib/amavis/tmp &>> $EE_COMMAND_LOG
# Update ClamAV database (freshclam)
ee_lib_echo "Updating ClamAV database, please wait..."
freshclam &>> $EE_COMMAND_LOG
service clamav-daemon restart &>> $EE_COMMAND_LOG \
|| ee_lib_echo "Unable to start ClamAV deamon"
}

Loading…
Cancel
Save