Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564038 - app-admin/webapp-config-1.5.4 does not seem to honour the -h (vhost) flag anymore
Summary: app-admin/webapp-config-1.5.4 does not seem to honour the -h (vhost) flag any...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-25 09:11 UTC by Thomas Stein
Modified: 2023-01-28 20:30 UTC (History)
3 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 Thomas Stein 2015-10-25 09:11:36 UTC
hello.

After upgrading to webapp-config 1.5.4 the "-h" flag does not work anymore. In 1.5.3 i could do a: 

webapp-config -I -h zabbix30 zabbix 3.0.0_alpha3

wich works fine. But after upgrading to 1.5.4 i get:

testing ~ # webapp-config -I -h zabbix30 zabbix 3.0.0_alpha3
usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
webapp-config: error: argument -I/--install: expected 2 argument(s)
testing ~ #

Any hints?

Thanks and cheers
t.

Reproducible: Always
Comment 1 Markus Kaindl 2015-10-27 13:32:41 UTC
I think that not the -h flag is the problem, but just a changed interpretation of the arguments without the usage-message being updated

webapp-config -h app.my.domain -U app 1.2.3 -d .

is working as expected, 

webapp-config -U -h app.my.domain -d . app 1.2.3

which would be what the usage message is telling you
(usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>)
is not working... 

It seems to me, that <APPLICATION VERSION> are not the last two arguments 
anymore, but have to be the next two after -U.
Comment 2 Thomas Stein 2015-10-27 15:13:11 UTC
Interesting. Thanks for the hint Markus.
Comment 3 Jaak Ristioja 2016-01-22 18:56:11 UTC
(In reply to Markus Kaindl from comment #1)
> It seems to me, that <APPLICATION VERSION> are not the last two arguments 
> anymore, but have to be the next two after -U.

Yes, this seems to be a valid workaround. Both `man 8 webapp-config` and `webapp-config --help` currently seem to provide incorrect instructions.
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2017-02-02 01:20:12 UTC
That's indeed the solution. A change of documentation is well needed but what is happening here is that the way webapp-config handles command line flags has changed from 1.5.3 to 1.5.4 to ensure python3 compatibility.

The usage from webapp-config --help should clarify this but I agree that proper documentation should be changed to reflect this as well.
Comment 5 Olliver Schinagl 2020-06-30 10:18:50 UTC
Could it be that this was changed again, without updating the docs, again?

In the past, as mentioned before, we could do:
webapp-config -U -h app.my.domain -d . app 1.2.3
As per (current! documentation)

This was changed later apparently to:
webapp-config -h app.my.domain -U app 1.2.3 -d .
Now, assuming that -d is optional, would suggest that
webapp-config -h app.my.domain -U app 1.2.3
would work as well

for me, it seems only following the original documentation-ish works
webapp-config -U app 1.2.3 -h app.my.domain -d .

Can we change the title of the bug to simply state 'update webapp-config documentation' so this will get fixed in the next 5 years? :)