From 23f64c842bd6a52021b4f14e3c0f980f778d2ab7 Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Thu, 9 Aug 2018 19:13:38 +0100 Subject: 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. --- daily.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daily.sh') diff --git a/daily.sh b/daily.sh index ffd34b5..81961e7 100755 --- a/daily.sh +++ b/daily.sh @@ -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}" -- cgit v1.2.1