Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111685 - webapp-config -U gives wrong etc-update command for awstats
Summary: webapp-config -U gives wrong etc-update command for awstats
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-06 05:10 UTC by Simon Hill
Modified: 2005-12-05 08:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Hill 2005-11-06 05:10:56 UTC
When upgrading awstats from 6.4 to 6.5, webapp-config gave the following as the command needed to 
update protected files:

CONFIG_PROTECT="/var/www/localhost/htdocs/awstats" etc-update

However, many of awstats' files are installed OUTSIDE this directory in /var/www/localhost/cgi-bin. 
Following the current instructions leaves over 100 files as ._cfg files which leaves awstats in a non-
working state. Doing

CONFIG_PROTECT="/var/www/localhost" etc-update

fixes the problem.

I am not sure whether this is a problem with webapp-config or awstats.  I seriously question whether 
installing files outside the destination directory like awstats does is a correct use of webapp-config.

Reproducible: Didn't try
Steps to Reproduce:
1. emerge =awstats-6.4
2. webapp-config -I -h localhost -d awstats awstats 6.4
3. emerge awstats
4. webapp-config -U -h localhost -d awstats awstats 6.5
5. CONFIG_PROTECT="/var/www/localhost/htdocs/awstats" etc-update

Actual Results:  
Over 100 ._cfg* files in /var/www/localhost/cgi-bin tree leaves at least parts of awstats non-functional

Expected Results:  
webapp-config should have recommended

CONFIG_PROTECT="/var/www/localhost" etc-update

i.e. the host directory rather than the app directory

OR

webapp-config should overwrite the files in /var/www/localhost/cgi-bin rather than protect them

OR 

awstats' webapp-config install should install all its files under the awstats directory.


I've marked this critical as the result for me was to lose at least an hour's worth of statistics data on 
multiple domains. Others users could lose more (or less) data depending on how they use awstats.
Comment 1 Simon Hill 2005-11-06 05:12:58 UTC
sorry, webapp-config version is 1.11
Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2005-11-06 06:13:28 UTC
Thanks for the note. I implemented a fix in the next version of webapp-config. 
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2005-12-05 08:05:40 UTC
Fixed upstream