« Ajouter des signatures ClamAV dans zimbra 8.8 » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 25 : | Ligne 25 : | ||
Ajoutez en début du fichier <code>clamav-unofficial-sigs.conf</code> : | Ajoutez en début du fichier <code>clamav-unofficial-sigs.conf</code> : | ||
<pre>PATH="/opt/zimbra/bin:/opt/zimbra/postfix/sbin:/opt/zimbra/openldap/bin:/opt/zimbra/snmp/bin:/opt/zimbra/rsync/bin:/opt/zimbra/bdb/bin:/opt/zimbra/openssl/bin:/opt/zimbra/java/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/zimbra/clamav/bin:/opt/zimbra/clamav/sbin"</pre> | <pre>PATH="/opt/zimbra/bin:/opt/zimbra/postfix/sbin:/opt/zimbra/openldap/bin:/opt/zimbra/snmp/bin:/opt/zimbra/rsync/bin:/opt/zimbra/bdb/bin:/opt/zimbra/openssl/bin:/opt/zimbra/java/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/zimbra/clamav/bin:/opt/zimbra/clamav/sbin"</pre> | ||
Appliquez ce petit patch (fixé sur git) | |||
<pre> | |||
--- clamav-unofficial-sigs.sh 2015-12-02 11:56:35.000000000 +0100 | |||
+++ clamav-unofficial-sigs.sh 2016-02-17 20:34:07.974609660 +0100 | |||
@@ -633,8 +633,8 @@ | |||
if [[ "$myresult" =~ "ERROR" ]] ; then | |||
xshok_pretty_echo_and_log "ERROR: Failed to reload, trying again" "-" | |||
if [ -r "$clamd_pid" ] ; then | |||
- $mypid=`cat clamd_pid` | |||
- kill -USR2 $clamd_pid | |||
+ mypid=`cat $clamd_pid` | |||
+ kill -USR2 $mypid | |||
if [ $? -eq 0 ] ; then | |||
xshok_pretty_echo_and_log "ClamAV databases Reloaded" "=" | |||
else | |||
</pre> | |||
<pre> | <pre> |
Version du 17 février 2016 à 20:36
mkdir /opt/zimbra/clamav-unofficial-sigs mkdir /var/log/clamav-unofficial-sigs/ chown zimbra:adm /var/log/clamav-unofficial-sigs/ chown zimbra:zimbra /opt/zimbra/clamav-unofficial-sigs
su - zimbra cd clamav-unofficial-sigs wget https://github.com/extremeshok/clamav-unofficial-sigs/archive/4.9.2.tar.gz -O clamav-unofficial-sigs_4.9.2.tar.gz tar --strip-components=1 -xf clamav-unofficial-sigs_4.9.2.tar.gz
Editez le fichier clamav-unofficial-sigs.conf
:
clam_user="zimbra" clam_group="zimbra" clam_dbs="/opt/zimbra/data/clamav/db" clamd_pid="/opt/zimbra/log/clamd.pid" work_dir="/opt/zimbra/clamav-unofficial-sigs/unofficial-dbs" user_configuration_complete=”yes“
Ajoutez en début du fichier clamav-unofficial-sigs.conf
:
PATH="/opt/zimbra/bin:/opt/zimbra/postfix/sbin:/opt/zimbra/openldap/bin:/opt/zimbra/snmp/bin:/opt/zimbra/rsync/bin:/opt/zimbra/bdb/bin:/opt/zimbra/openssl/bin:/opt/zimbra/java/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/zimbra/clamav/bin:/opt/zimbra/clamav/sbin"
Appliquez ce petit patch (fixé sur git)
--- clamav-unofficial-sigs.sh 2015-12-02 11:56:35.000000000 +0100 +++ clamav-unofficial-sigs.sh 2016-02-17 20:34:07.974609660 +0100 @@ -633,8 +633,8 @@ if [[ "$myresult" =~ "ERROR" ]] ; then xshok_pretty_echo_and_log "ERROR: Failed to reload, trying again" "-" if [ -r "$clamd_pid" ] ; then - $mypid=`cat clamd_pid` - kill -USR2 $clamd_pid + mypid=`cat $clamd_pid` + kill -USR2 $mypid if [ $? -eq 0 ] ; then xshok_pretty_echo_and_log "ClamAV databases Reloaded" "=" else
chmod +x clamav-unofficial-sigs.sh ./clamav-unofficial-sigs.sh -c ./clamav-unofficial-sigs.conf