Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48386 - webapp-config fails to clean instance
Summary: webapp-config fails to clean instance
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-19 12:38 UTC by Josh Glover (RETIRED)
Modified: 2004-04-19 14:46 UTC (History)
2 users (show)

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 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