Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-web-user
Lists: gentoo-web-user: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-web-user@g.o
From: Panard <panard@...>
Subject: webapp-config protect behaviour
Date: Wed, 8 Mar 2006 15:31:21 +0100

	I would like to discuss about current webapp-config behaviour concerning 
protecting/drop user modifications on webapps.

Here is the current behaviour :

$ webapp-config -I -h localhost -d test/ma phpmyadmin 2.6.0
$ cd /var/www/localhost/htdocs/test/ma
$ echo 1 > new_file
$ echo 2 >> index.php
$ webapp-config -U -h localhost -d test/ma phpmyadmin 2.8.0_beta1
* Upgrading phpmyadmin-2.6.0 to phpmyadmin-2.8.0_beta1
*   Installed by root on 2006-03-08 15:15:24
*   Config files owned by 0:0
!time index.php
!empty /var/www/localhost/cgi-bin
!empty /var/www/localhost/icons

--- /var/www/localhost/htdocs/test/ma
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed
* Install completed - success
$ ls -A | grep '^\.'
$ ls new_file

=> added files are keeped, but modified ones are simply overwritten.

I think that droping user modifications to a webapp is quite grave. There is 
some reasons to modifify a webapp :
- bug fixes
- add some features, often about security, like adding verification code for 
registrations forms...
- disabling some features, to prevent clients to use them
- ....

And if you want to upgrade to the latest version of this webapp, you will lose 
all these changes!

I'm agree to the goal for after a webapp-config -U, your webapp is directly 
But, I prefer waiting 3 minutes by doing etc-update and merging changes with 
the new version, 
than losing all my changes, temporaly block access to clients for security 
reason, and redo all my changes if I found time and motivation to do my work 
a second time....
I mean, erasing user modification would put the webapp in a 'non-functionnal' 
state, and for a long time.... that's not the goal of a webapp installation 

So why not use the CONFIG_PROTECT from make.conf to auto-protect server-owned 


gentoo-web-user@g.o mailing list

Re: webapp-config protect behaviour
-- Gunnar Wrobel
Lists: gentoo-web-user: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Next by thread:
Re: webapp-config protect behaviour
Previous by date:
Next by date:
Re: webapp-config protect behaviour

Updated Jun 17, 2009

Summary: Archive of the gentoo-web-user mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.