Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2006 20:41:59 -0300 (ADT)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        Thierry Thomas <thierry@FreeBSD.org>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: BEWARE upgrading Horde System
Message-ID:  <20060409203111.S1096@ganymede.hub.org>
In-Reply-To: <20060409201012.GF93845@graf.pompo.net>
References:  <20060407032220.W947@ganymede.hub.org> <1144391457.23833.6.camel@shumai.marcuscom.com> <44363371.9050200@fromley.net> <20060407141831.GA65673@pentarou.parodius.com> <20060408075305.GB58919@graf.pompo.net> <20060409050018.X1096@ganymede.hub.org> <20060409201012.GF93845@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1796827095-1144626119=:1096
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Sun, 9 Apr 2006, Thierry Thomas wrote:

> Le Dim  9 avr 06 =E0 10:03:35 +0200, Marc G. Fournier <scrappy@hub.org>
> =E9crivait=A0:
>> Actually, I think you've done a fine job ... my *only* beef is arbitrari=
ly
>> moving aside of the config files that I've already configured ... if I
>> download a horde package, and untar that over top of my existing setup, =
to
>> upgrade, *it* doesn't do it ... and if I use CVS to update from the
>> anoncvs server, it doesn't remove my config files ... the FreeBSD port
>> shouldn't either ...
>
> There are two main possibilities:
>
> 1- the current one: you get an almost running webmail after the initial
> installation; the installed config files are pre-configured with the
> variables set in the ports Makefile and according to the installed
> dependencies. When upgrading, your modified config files are saved, and
> a new config is installed. Then you have to merge your setup within the
> new files (there is no mergemaster: I use gvimdiff, and I'm sure that
> any decent $EDITOR provides such a tool). You have to do that only for
> your modified files (those saved as .previous).
>
> 2- the port does not pre-install config files, but only the .dist files
> as samples. As you write, this is the method provided by the Horde
> project when you install manually directly from the tarball. During the
> initial configuration, the OP must
>
>     cd config/
>     for f in *.dist; do cp $f `basename $f .dist`; done
>
> for each Horde module. Since these files are not installed by the port,
> they are not deinstalled, and they are still ready when you reinstall.
> And your installation may run or not... To be secure, you have to
> compare your configured files with the new .dist files, and merge the
> new options into your files. You have to check all config files, even
> the ones that you kept unmodified.
>
> I had choosen the first method, because I thought it was easier for the
> OP this way, and I think that a port should do better than a manual
> installation.

You've missed the 3rd, and optimal, option: on initial install, install=20
the config files based on the .dist files, but *do not* overwrite an=20
existing config file (ie. after an upgrade) ...

The problem is that in your option 1 above, on an existing system, you go=
=20
from a "fully running system", and bring someone back to just an "almost=20
running webmail", and, in fact, it isn't even *almost* running, since now=
=20
there is no more connections to the IMAP server, since you've totally=20
unconfigured that, you taken away all of my existing database=20
configurations, etc ...

Please note that right now, if I upgrade based on the ports, the system=20
does not work ... a proper upgrade should involve installing all of the=20
new files, and then the admin logging in and going to Horde's Admin ->=20
Setup section, and properly going through each module ... the problem with=
=20
your current install, none of the default values are right, there is no=20
database connection information, etc ... once I put back in my config=20
files from backup, I went to the Setup, it loaded what I had before as=20
defaults, and when I saved the config file, any new (or obsolete)=20
variables were then added/removed ... with your current config choices,=20
I'd have to go through page after page of options, same as i went through=
=20
the very first time, and hope that I get all my settings right, and didn't=
=20
miss something important ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664
--0-1796827095-1144626119=:1096--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060409203111.S1096>