Re: /etc/ question
On Sun, Feb 25, 2001 at 03:03:08PM +0100, Eric Van Buggenhaut wrote:
> That's what I read in one of your previous message and it made sense to me.
> Then Henrique argued that it was a bad idea.
>
> [...]
> > > Perhaps better: copy it in the postinst, remove the old version in the
> > > postinst. Then if any problems arise, the original version will still
> > > be present.
> >
> > BAD idea. This will defeat the conffile change detection engine in dpkg, and
> > will cause problems in some cases. Don't do that.
>
> Did he just say that because of the typo ? s/postinst/preinst ?
I'm sure it was; copying it in the preinst will allow dpkg to do its
work.
But remember someone else's advice: copy iff old conffile exists and
new conffile doesn't. It's probably not a disaster if the upgrade
bombs and the new conffile is left in place; you may not even need to
worry about error unwinding.
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
Debian GNU/Linux Developer, see http://people.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: