View Single Post
  #4  
Old 19th December 2010, 11:33
triscan triscan is offline
Junior Member
 
Join Date: Nov 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

awesome work, thanks a lot.

there is a problem in ispconfig so that awstats only create a field from 0 - 0:30
http://bugtracker.ispconfig.org/inde...s&task_id=1395

this is fixed in ispconfig 3.0.3.1
to fix this in jawstats add/change some lines to the script:

Code:
[...]
for i in $*
do
    case $i in
        -config=*)
        CONFIG=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
        ;;
        -lang=*)
        LANG=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
        ;;
        -dir=*)
        DIR=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
        ;;
    -awstatsprog=*)
        AWSTATS=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
                ;;
        -LogFile=*)
        LOGFILE=`echo $i | sed 's/[-a-zA-Z0-9]*=//'`
        ;;
      esac
done
[...]
Code:
[...]
#Needed to keep perl from spitting out warnings on my system
LANG="en_US.UTF-8"
CMD="$AWSTATS""  -config='""$CONFIG""' -lang=""$LANG"" -LogFile=""$LOGFILE"" -update"
$CMD
[...]
Reply With Quote