summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spragg <adam@spragg-ssl.co.uk>2018-08-09 19:13:38 +0100
committerAdam Spragg <adam@spragg-ssl.co.uk>2018-08-09 19:13:38 +0100
commit23f64c842bd6a52021b4f14e3c0f980f778d2ab7 (patch)
tree570ccb0f7c48ebfbb8c06a7f63d33a6f886160ec
parentec1a2cb73fdf7346a47330b4cd7d0c9b3f7143b0 (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-xdaily.sh2
1 files changed, 1 insertions, 1 deletions
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}"