awstats doesn't compute last day of month

Version 1.361

Bugfix
Finished

http://www.directadmin.com/forum/showthread.php?p=158044&posted=1#post158044 if day=1, take date for day-1. -month and -year must be passed. Changes in the awstats_process.sh: BD='-builddate=%YY%MM' DAY=`date +%e` if [ "$DAY" -eq 1 ]; then YYMM=`date --date='yesterday' +%y%m` BD="-builddate=$YYMM" fi #-lang=en /usr/bin/perl ${AWSTATS}/tools/awstats_buildstaticpages.pl -config=${DOMAIN} -configdir=${DATA_DIR} -update -diricons=icon -awstatsprog=${AWSTATS}/cgi-bin/awstats.pl -dir=${STATS_DIR} $BD RET=$? if [ "$DAY" -eq 1 ]; then MAIN_FILE=awstats.${DOMAIN}.`date --date='yesterday' +%y%m`.html else MAIN_FILE=awstats.${DOMAIN}.`date +%y%m`.html fi

Interested to try DirectAdmin? Get a 30-day Free Trial!