« 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
Aucun résumé des modifications
Ligne 38 : Ligne 38 :
Appliquez ce petit patch :
Appliquez ce petit patch :
<pre>
<pre>
--- a/clamav-unofficial-sigs.sh
--- a/clamav-unofficial-sigs.sh   2019-10-06 00:10:56.699277210 +0200
+++ b/clamav-unofficial-sigs.sh
+++ b/clamav-unofficial-sigs.sh   2019-10-06 00:18:21.364254010 +0200
@@ -1414,7 +1414,7 @@ done
@@ -1429,8 +1429,8 @@
if [ "$custom_config" != "no" ] ; then
  config_dir="/etc/clamav-unofficial-sigs"
  if [ -d "$custom_config" ] ; then
elif [ -f "/usr/local/etc/clamav-unofficial-sigs/master.conf" ] ; then
    # Assign the custom config dir and remove trailing / (removes / and //)
  config_dir="/usr/local/etc/clamav-unofficial-sigs/"
-   shopt -s extglob; custom_config="${custom_config%%+(/)}"
-elif [ -f "/opt/zimbra/config/clamav-unofficial-sigs/master.conf" ] ; then
+    shopt -s extglob; config_dir="${custom_config%%+(/)}"
- config_dir="/opt/zimbra/config/clamav-unofficial-sigs/"
    config_files=( "$config_dir/master.conf" "$config_dir/os.conf" "$config_dir/user.conf" )
+elif [ -f "/opt/zimbra/conf/clamav-unofficial-sigs/master.conf" ] ; then
   else
+  config_dir="/opt/zimbra/conf/clamav-unofficial-sigs/"
    config_files=( "$custom_config" )
else
  xshok_pretty_echo_and_log "ERROR: config_dir (/etc/clamav-unofficial-sigs/master.conf) could not be found"
   exit 1
</pre>
</pre>


4 203

modifications

Menu de navigation