« 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 40 : Ligne 40 :
Appliquez ce petit patch (fixé sur git et pour les versions > 4.9.2)
Appliquez ce petit patch (fixé sur git et pour les versions > 4.9.2)
<pre>
<pre>
--- clamav-unofficial-sigs.sh   2015-12-02 11:56:35.000000000 +0100
--- a/clamav-unofficial-sigs.sh
+++ clamav-unofficial-sigs.sh   2016-02-17 20:34:07.974609660 +0100
+++ b/clamav-unofficial-sigs.sh
@@ -633,8 +633,8 @@
@@ -1414,7 +1414,7 @@ done
    if [[ "$myresult" =~ "ERROR" ]] ; then
if [ "$custom_config" != "no" ] ; then
      xshok_pretty_echo_and_log "ERROR: Failed to reload, trying again" "-"
  if [ -d "$custom_config" ] ; then
      if [ -r "$clamd_pid" ] ; then
    # Assign the custom config dir and remove trailing / (removes / and //)
-        $mypid=`cat clamd_pid`
-   shopt -s extglob; custom_config="${custom_config%%+(/)}"
-       kill -USR2 $clamd_pid
+   shopt -s extglob; config_dir="${custom_config%%+(/)}"
+       mypid=`cat $clamd_pid`
    config_files=( "$config_dir/master.conf" "$config_dir/os.conf" "$config_dir/user.conf" )
+       kill -USR2 $mypid
  else
        if [ $? -eq  0 ] ; then
    config_files=( "$custom_config" )
          xshok_pretty_echo_and_log "ClamAV databases Reloaded" "="
        else
</pre>
</pre>


4 206

modifications

Menu de navigation