Package: awstats
Version: 6.9.5~dfsg-5
Severity: wishlist
Tags: patch

With the following patch, buildstatic.sh will also create an
index.html file in the directory so that an apache server will serve
the right file when the directory is visited.

--- /tmp/orig   2012-05-17 16:18:37.171449338 -0400
+++ /usr/share/awstats/tools/buildstatic.sh     2012-05-17 16:13:36.859453874 
-0400
@@ -42,5 +42,7 @@
        -dir=/var/cache/awstats/$c/$YEAR/$MONTH/ >$ERRFILE 2>&1
   then
     cat $ERRFILE >&2 # an error occurred
+  else
+    ln -fs /var/cache/awstats/$c/$YEAR/$MONTH/awstats.$c.$AWSTATS_LANG.html 
/var/cache/awstats/$c/$YEAR/$MONTH/index.html
   fi
 done

A.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to