Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48386

Summary: webapp-config fails to clean instance
Product: Gentoo Linux Reporter: Josh Glover (RETIRED) <jmglov>
Component: [OLD] Core systemAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED INVALID    
Severity: normal CC: eradicator, stuart
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Josh Glover (RETIRED) gentoo-dev 2004-04-19 12:38:01 UTC
If I install an instance of a webapp ebuild:

sudo webapp-config -I -d /var/www/localhost/htdocs/ lxr 0.3.1

and then attempt to clean that instance, I get the following:

: jmglov@jglover; sudo webapp-config -C -d /var/www/localhost/htdocs/ lxr 0.3.1
 
 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is jglover.tfcc.com
 *   --server        is apache-basic
 *   --directory     is /var/www/localhost/htdocs/
 *   package         is lxr
 *   version         is 0.3.1
 *   action          is clean

 * Did you forget to use the -d switch?

However, if I attempt to install again, I get the following error:

: jmglov@jglover; sudo webapp-config -I -d /var/www/localhost/htdocs/ lxr 0.3.1 

 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is jglover.tfcc.com
 *   --server        is apache-basic
 *   --directory     is /var/www/localhost/htdocs/
 *   package         is lxr
 *   version         is 0.3.1
 *   action          is install

 * Do we have lxr-0.3.1 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/localhost/htdocs/?
 * Package lxr-0.3.1 is already installed here
 * Use webapp-config -C to uninstall it first
 * Install directory already contains a web application
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2004-04-19 14:46:10 UTC
Hiya,

To clean an installed application, just use

webapp-config -C -d /var/www/localhost/htdocs/

You do not need the package name or version on the end.  That's why the script isn't working as you expect.

I'll make it more obvious that the script has exited with an error.

Best regards,
Stu