[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6196-gf11d971

Michael Tautschnig mt at debian.org
Mon Apr 19 10:54:47 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit f11d97182f740423786dd8834e7c33712f5cb72d
Author: Michael Tautschnig <mt at debian.org>
Date:   Mon Apr 19 12:54:15 2010 +0200

    Really fix missing logrotate config file for freshclam
    
    - In freshclam.conf, it is named UpdateLogfile, not just Logfile
    
    Signed-off-by: Michael Tautschnig <mt at debian.org>

diff --git a/debian/clamav-freshclam.postinst.in b/debian/clamav-freshclam.postinst.in
index 963cc71..d696c36 100644
--- a/debian/clamav-freshclam.postinst.in
+++ b/debian/clamav-freshclam.postinst.in
@@ -96,15 +96,15 @@ case "$1" in
 
   slurp_config "$FRESHCLAMCONFFILE"
 
-  if [ -n "$LogFile" ]; then
-    if echo "$LogFile" | grep -q '^/dev/'; then
+  if [ -n "$UpdateLogFile" ]; then
+    if echo "$UpdateLogFile" | grep -q '^/dev/'; then
       make_logrotate=false
     else
       make_logrotate=true
     fi
     [ -n "$User" ] || User=clamav
     if [ "$make_logrotate" = 'true' ]; then
-      echo "$LogFile {" > $DEBROTFILE
+      echo "$UpdateLogFile {" > $DEBROTFILE
       echo "     rotate 12" >> $DEBROTFILE
       echo "     weekly" >> $DEBROTFILE
       echo "     compress" >> $DEBROTFILE
@@ -115,9 +115,9 @@ case "$1" in
       echo "     /etc/init.d/clamav-freshclam reload-log > /dev/null" >> $DEBROTFILE
       echo "     endscript" >> $DEBROTFILE
       echo "     }" >> $DEBROTFILE
-      touch "$LogFile"
-      chown "$User":adm "$LogFile"
-      chmod 0640 "$LogFile"
+      touch "$UpdateLogFile"
+      chown "$User":adm "$UpdateLogFile"
+      chmod 0640 "$UpdateLogFile"
       ucf_cleanup "$LOGROTFILE"
       ucf_upgrade_check "$LOGROTFILE" "$DEBROTFILE" /var/lib/ucf/cache/:etc:logrotate.d:clamav-freshclam
       rm -f $DEBROTFILE

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list