1 |
Dan Johansson <dan@×××.nu> wrote: |
2 |
|
3 |
> On 26.10.2015 21:56, Mick wrote: |
4 |
> > On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote: |
5 |
> >> The other day I noticed that the behavior of webapp-config has changed. |
6 |
> >> I have USE=vhost enabled and I have a directory structure where each |
7 |
> >> "app" is installed in htdocs in its own v-host like this: |
8 |
> >> |
9 |
> >> /var/www/app-1.int.dmj.nu/htdocs/ |
10 |
> >> /var/www/app-2.int.dmj.nu/htdocs/ |
11 |
> >> |
12 |
> >> Before I could simply do the following to upgrade an app |
13 |
> >> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3 |
14 |
> >> |
15 |
> >> And this would update the app-1 in /var/www/app-1.int.dmj.nu to version |
16 |
> >> 1.2.3 |
17 |
> >> (note, there is NO -d for directory in there) |
18 |
> >> |
19 |
> >> Doing this now results in this: |
20 |
> >> * Install dir flag not supplied, defaulting to "app-1". |
21 |
> >> * Fatal error: Cannot clean! |
22 |
> >> * Fatal error: No package installed in |
23 |
> >> /var/www/app-1.int.dmj.nu/htdocs/app-1 |
24 |
> >> * Fatal error(s) - aborting |
25 |
> > |
26 |
> > Did you try to run it like so: |
27 |
> > |
28 |
> > webapp-config -h app-1.int.dmj.nu -U . 1.2.3 |
29 |
> > |
30 |
> > or even better: |
31 |
> > |
32 |
> > webapp-config -U -h app-1.int.dmj.nu 1.2.3 |
33 |
> > |
34 |
> > The above error you're getting above points to your call for 'app-1' cause |
35 |
> > webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1' |
36 |
> |
37 |
> None of the above works. :-( |
38 |
> |
39 |
> # webapp-config -U -h app-1.int.dmj.nu 1.2.3 |
40 |
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION> |
41 |
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s) |
42 |
> |
43 |
> # webapp-config -h app-1.int.dmj.nu -U 1.2.3 |
44 |
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION> |
45 |
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s) |
46 |
> |
47 |
> # webapp-config -h app-1.int.dmj.nu -U . 1.2.3 |
48 |
> * Install dir flag not supplied, defaulting to ".". |
49 |
> * Fatal error: Please emerge app-1/.-1.2.3 first. |
50 |
> * Fatal error(s) - aborting |
51 |
> |
52 |
The following command worked for me and I don't think webapp-config has |
53 |
been updated since |
54 |
webapp-config --secure -d owncloud -h covici.com -U owncloud 8.1.1 |
55 |
|
56 |
Where you can have -I instead of -U and --secure is optional of course. |
57 |
|
58 |
-- |
59 |
Your life is like a penny. You're going to lose it. The question is: |
60 |
How do |
61 |
you spend it? |
62 |
|
63 |
John Covici |
64 |
covici@××××××××××.com |