People who 'sudo apt-get install awstats' often become sad because it
immediately starts running the cron script and complaining
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
every 10 minutes.
Suggestion: modify /usr/share/awstats/tools/update.sh to skip
/etc/awstats/awstats.conf if it's not configured yet:
--- /usr/share/awstats/tools/update.sh 2013-11-16 10:57:57.000000000 +0000
+++ /usr/share/awstats/tools/update.sh 2015-04-20 16:15:23.000000000 +0100
@@ -26,7 +26,9 @@
for c in `/bin/ls -1 awstats.*.conf 2>/dev/null | \
/bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` \
- `[ -f /etc/awstats/awstats.conf ] && echo awstats`
+ `[ -f /etc/awstats/awstats.conf ] \
+ && ! grep -q '^SiteDomain=""$' /etc/awstats/awstats.conf \
+ && echo awstats`
do
if ! nice -n $AWSTATS_NICE $AWSTATS \
-config=$c \
Doing this would probably also satisfy people who filed bugs 744093,
641481, and 590074.
Marius Gedminas
--
If it weren't for the last minute, nothing would ever get done.