From: Edward Catmur <ed@catmur.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] CONFIG_PROTECT problem
Date: Fri, 15 Jul 2005 19:32:49 +0100 [thread overview]
Message-ID: <1121452369.24705.1.camel@capella.catmur.co.uk> (raw)
In-Reply-To: <35358.198.240.128.75.1121437909.squirrel@webmail.pandasys.net>
On Fri, 2005-07-15 at 15:31 +0100, Peter Campion-Bye wrote:
> Hi,
> Apologies if I've misunderstood the use of CONFIG_PROTECT, but I think
> I've found a hole in it. As I have lots of stuff under
> /var/www/localhost/htdocs which contains configuration files mixed in with
> the code ( phpmyadmin, phpldapadmin, phpwiki, squirrelmail, gallery etc )
> I have put the path /var/www/localhost/htdocs into CONFIG_PROTECT in
> make.conf. When one of these packages is upgraded this seems to work fine.
> Last night, after upgrading PHP to 4.4.0 my wiki was broken. I thought a
> good place to start would be to re-emerge phpwiki, so I did. During the
> emerge it flashed up a message about this being a package that it couldn't
> upgrade, so it would be unmerged it first. It appears that this bypassed
> the CONFIG_PROTECT mechanism, as when the new files were installed the
> original had been removed, so no ._cfg0000_ files were created for the
> changed files.
> Having no recent backup (lesson learned!) I had to recreate the phpwiki
> config, which is a non-trivial job.
> So the question is, how can config files be protected in this kind of
> situation (other than backing them up) - is there another mechanism to
> protect files from being overwritten, and how many packages are likely to
> do an unmerge before re-emerging, and is there ay way of knowing? I
> believe the default behaviour on umnerging a package is to leave its
> configuration files in place, this doesn't seem to apply to the web apps.
phpwiki I believe uses webapp-config rather than the default ebuild
staging method of installing applications. Have you read the
documentation to webapp-config?
--
gentoo-user@gentoo.org mailing list
prev parent reply other threads:[~2005-07-15 18:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 14:31 [gentoo-user] CONFIG_PROTECT problem Peter Campion-Bye
2005-07-15 18:28 ` Richard Fish
2005-07-15 18:32 ` Edward Catmur [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1121452369.24705.1.camel@capella.catmur.co.uk \
--to=ed@catmur.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox