Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Changed behavior of webapp-config
Date: Wed, 28 Oct 2015 19:48:46
Message-Id: CB5B23A5-A81D-4D17-AED9-9AA65630C4F9@antarean.org
In Reply to: Re: [gentoo-user] Changed behavior of webapp-config by covici@ccs.covici.com
1 On 28 October 2015 17:45:04 CET, covici@××××××××××.com wrote:
2 >Dan Johansson <dan@×××.nu> wrote:
3 >
4 >> On 26.10.2015 21:56, Mick wrote:
5 >> > On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
6 >> >> The other day I noticed that the behavior of webapp-config has
7 >changed.
8 >> >> I have USE=vhost enabled and I have a directory structure where
9 >each
10 >> >> "app" is installed in htdocs in its own v-host like this:
11 >> >>
12 >> >> /var/www/app-1.int.dmj.nu/htdocs/
13 >> >> /var/www/app-2.int.dmj.nu/htdocs/
14 >> >>
15 >> >> Before I could simply do the following to upgrade an app
16 >> >> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
17 >> >>
18 >> >> And this would update the app-1 in /var/www/app-1.int.dmj.nu to
19 >version
20 >> >> 1.2.3
21 >> >> (note, there is NO -d for directory in there)
22 >> >>
23 >> >> Doing this now results in this:
24 >> >> * Install dir flag not supplied, defaulting to "app-1".
25 >> >> * Fatal error: Cannot clean!
26 >> >> * Fatal error: No package installed in
27 >> >> /var/www/app-1.int.dmj.nu/htdocs/app-1
28 >> >> * Fatal error(s) - aborting
29 >> >
30 >> > Did you try to run it like so:
31 >> >
32 >> > webapp-config -h app-1.int.dmj.nu -U . 1.2.3
33 >> >
34 >> > or even better:
35 >> >
36 >> > webapp-config -U -h app-1.int.dmj.nu 1.2.3
37 >> >
38 >> > The above error you're getting above points to your call for
39 >'app-1' cause
40 >> > webapp to assume the directory is
41 >'/var/www/app-1.int.dmj.nu/htdocs/app-1'
42 >>
43 >> None of the above works. :-(
44 >>
45 >> # webapp-config -U -h app-1.int.dmj.nu 1.2.3
46 >> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
47 >> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
48 >>
49 >> # webapp-config -h app-1.int.dmj.nu -U 1.2.3
50 >> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
51 >> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
52 >>
53 >> # webapp-config -h app-1.int.dmj.nu -U . 1.2.3
54 >> * Install dir flag not supplied, defaulting to ".".
55 >> * Fatal error: Please emerge app-1/.-1.2.3 first.
56 >> * Fatal error(s) - aborting
57 >>
58 >The following command worked for me and I don't think webapp-config has
59 >been updated since
60 >webapp-config --secure -d owncloud -h covici.com -U owncloud 8.1.1
61 >
62 >Where you can have -I instead of -U and --secure is optional of course.
63
64 The problem is that webapp-config now has the '-d' option as mandatory.
65 This means installing into the webroot is not easy. (-d "" worked for me, but is annoying)
66
67 --
68 Joost
69 --
70 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies

Subject Author
Re: [gentoo-user] Changed behavior of webapp-config Dan Johansson <dan@×××.nu>
Re: [gentoo-user] Changed behavior of webapp-config Neil Bothwick <neil@××××××××××.uk>