Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121531 - webapp-config package removal produces errors
Summary: webapp-config package removal produces errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-04 04:22 UTC by Narada Sage
Modified: 2006-03-04 08:34 UTC (History)
1 user (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 Narada Sage 2006-02-04 04:22:35 UTC
`man webapp-config` has the following example:

====
   Removing applications
       To remove the copy of phpmyadmin-2.5.7, you would do this:

       webapp-config -C -d /databases/admin/

       To remove all the virtual copies of phpmyadmin-2.5.7, you would do this:

       for x in `webapp-config --list-installs phpmyadmin 2.5.7` ; do  webapp-config -C -d $x ; done

====

When I tried these examples for awstats 6.5 however they did not work.

dhruba ~ # webapp-config  --list-installs  awstats 6.5
/var/www/dhruba.net/htdocs/stats/dhruba.net/
/var/www/localhost/htdocs/awstats/
dhruba ~ # for  x  in  `webapp-config  --list-installs  awstats 6.5` ; do webapp-config -C -d $x ; done

Fatal error: No package installed in /var/www/localhost/htdocs/var/www/dhruba.net/htdocs/stats/dhruba.net/
Fatal error(s) - aborting

Fatal error: No package installed in /var/www/localhost/htdocs/var/www/localhost/htdocs/awstats/
Fatal error(s) - aborting
dhruba ~ # webapp-config -C -d /var/www/dhruba.net/htdocs/stats/dhruba.net/

Fatal error: No package installed in /var/www/localhost/htdocs/var/www/dhruba.net/htdocs/stats/dhruba.net/
Fatal error(s) - aborting
Comment 1 Narada Sage 2006-02-04 04:32:14 UTC
The command below works however but only seems to remove one installed instance instead of two.

dhruba ~ # webapp-config -C -d awstats 6.5                                 
 * Removing awstats-6.5 from /var/www/localhost/htdocs/awstats
 *   Installed by root on 2006-01-30 19:24:19
 *   Config files owned by root:root
Comment 2 Allen Brooker (AllenJB) 2006-02-04 04:39:16 UTC
Your instances are installed in different hosts. You need to use the -h parameter to specify the host for the other instanbce you have installed (-h defaults to localhost).

Of course, if you'd read the manual (man webapp-config or webapp-config --help) you would know this. Please read the manual and use the forums to confirm bugs before posting them to bugzilla - it is not a support forum.
Comment 3 Narada Sage 2006-02-04 04:43:01 UTC
The second instance was removed by doing the following:

dhruba ~ # webapp-config -C -h  dhruba.net  -d  /stats/dhruba.net/ awstats 6.5
 * Removing awstats-6.5 from /var/www/dhruba.net/htdocs/stats/dhruba.net/
 *   Installed by root on 2006-01-29 14:38:56
 *   Config files owned by root:root
Comment 4 Narada Sage 2006-02-04 04:48:35 UTC
I've managed to remove both instances now.  It'd be nice if it said at the end that the instance has been removed successfully.

Comment #2: Hi.  You seem very keen on reprimanding me for posting this bug.  Yes I've managed to remove both instances by using various command parameters but shouldn't the command suggested in the man page have worked?  It's easy to close a bug but you shouldn't put people off posting them if they think there's a problem that they can help with.
Comment 5 Allen Brooker (AllenJB) 2006-02-04 05:27:55 UTC
I apologise. I missed where you'd got the command from. It does look like the man page needs looking at.
Comment 6 Gunnar Wrobel (RETIRED) gentoo-dev 2006-03-04 08:34:09 UTC
Fixed UPSTREAM.

http://www.vhost-tools.org/changeset/271#file2

Will be part of webapp-config-1.50.12.

Thanks for the report!