diff options
author | Adam Spragg <adam@spragg-ssl.co.uk> | 2018-08-09 19:13:38 +0100 |
---|---|---|
committer | Adam Spragg <adam@spragg-ssl.co.uk> | 2018-08-09 19:13:38 +0100 |
commit | 23f64c842bd6a52021b4f14e3c0f980f778d2ab7 (patch) | |
tree | 570ccb0f7c48ebfbb8c06a7f63d33a6f886160ec | |
parent | ec1a2cb73fdf7346a47330b4cd7d0c9b3f7143b0 (diff) |
Fix ${AWMONTH} to ${AWMON}
If you try and supply a month, but it's invalid, it just uses the
current month rather than giving you an error. Helpful.
-rwxr-xr-x | daily.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,6 +26,6 @@ AWDATA="${SITEROOT}/awstats/data/awstats${AWMON}${AWYEAR}.txt" /usr/share/awstats/tools/awstats_buildstaticpages.pl \ -awstatsprog="${SITEROOT}/awstats/awstats" \ -config="${DOMAIN}" -dir="${SITEROOT}/awstats/html" \ - -year="${AWYEAR}" -month="${AWMONTH}" \ + -year="${AWYEAR}" -month="${AWMON}" \ 2>&1 | /usr/bin/ts "${TSFMT} awstats_buildstaticpages.pl:" >>"${LOGFILE}" |