Dan Johansson <[email protected]> wrote:
> On 26.10.2015 21:56, Mick wrote:
> > On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
> >> The other day I noticed that the behavior of webapp-config has changed.
> >> I have USE=vhost enabled and I have a directory structure where each
> >> "app" is installed in htdocs in its own v-host like this:
> >>
> >> /var/www/app-1.int.dmj.nu/htdocs/
> >> /var/www/app-2.int.dmj.nu/htdocs/
> >>
> >> Before I could simply do the following to upgrade an app
> >> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
> >>
> >> And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
> >> 1.2.3
> >> (note, there is NO -d for directory in there)
> >>
> >> Doing this now results in this:
> >> * Install dir flag not supplied, defaulting to "app-1".
> >> * Fatal error: Cannot clean!
> >> * Fatal error: No package installed in
> >> /var/www/app-1.int.dmj.nu/htdocs/app-1
> >> * Fatal error(s) - aborting
> >
> > Did you try to run it like so:
> >
> > webapp-config -h app-1.int.dmj.nu -U . 1.2.3
> >
> > or even better:
> >
> > webapp-config -U -h app-1.int.dmj.nu 1.2.3
> >
> > The above error you're getting above points to your call for 'app-1' cause
> > webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1'
>
> None of the above works. :-(
>
> # webapp-config -U -h app-1.int.dmj.nu 1.2.3
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>
> # webapp-config -h app-1.int.dmj.nu -U 1.2.3
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>
> # webapp-config -h app-1.int.dmj.nu -U . 1.2.3
> * Install dir flag not supplied, defaulting to ".".
> * Fatal error: Please emerge app-1/.-1.2.3 first.
> * Fatal error(s) - aborting
>
The following command worked for me and I don't think webapp-config has
been updated since
webapp-config --secure -d owncloud -h covici.com -U owncloud 8.1.1
Where you can have -I instead of -U and --secure is optional of course.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
[email protected]