Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175800

awstats: Debian's update.sh script

From Florian Lindner <mailinglists@xgm.de>
Newsgroups linux.debian.user
Subject awstats: Debian's update.sh script
Date 2016-12-18 13:00 +0100
Message-ID <sPIie-7in-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

awstats: Debian's update.sh script Florian Lindner <mailinglists@xgm.de> - 2016-12-18 13:00 +0100

csiph-web