[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

awstats: Debian's update.sh script



Hello,

I'm setting up the awstats version from Debian Stable.

There is Debian custom update.sh script included, which should update
all logs, identified by a configuration file in /etc/awstats

# ll /etc/awstats
-rw-r--r-- 1 root root 63654 May 14  2016 awstats.conf
-rw-r--r-- 1 root root  2593 Dec 16 18:12 awstats.conf.local
-rw-r--r-- 1 root root   173 Dec 16 17:48 awstats.xgm.de.conf

when executing the update.sh script:

# /usr/share/awstats/tools/update.sh
Error while processing /etc/awstats/awstats.conf
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).


The script iterates through all configs:

for c in `/bin/ls -1 awstats.*.conf 2>/dev/null | \
          /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` \
         `[ -f /etc/awstats/awstats.conf ] && echo awstats`
do

The frist two lines correctly return my config = xgm.de, but the second
line adds a config=awstats, when awstats.conf exists.

Why is that? Who is awstats configuration under Debian meant to be used?
My understanding is that I do not modify the awstats.conf but create a
awstats.conf.local where all changed settings are copied over. This
awstats.conf.local is now included from the awstats.domain.conf files?

But why is iterated like that? Should the awstats.conf be deleted and
completely be moved over to awstats.conf.local?

Thanks,
Florian


Reply to: