Re: Changes in a conffile
On Thu, Feb 14, 2002 at 09:28:33AM -0600, Manoj Srivastava wrote:
> >> > An upgrade of the htdig can fail now (bug #133867), because this
> >> > location should be changed in the configuration file too. Can I
> >> > modify the location (if it's still listed as the old location) in the
> >> > configuration file from the postinst script? Policy (ch 11.7) is not
> >> > very clear about it IMHO.
> >>
> >> Change the path in the conffile in the package. Don't do anything in
> >> postinst. dpkg will notice that the conffile in the package has
> >> changed and prompt the user. If they are too stupid to [D]iff and
> >> observe the changes, that is entirely their problem
>
> Josip> Personally I prefer packages that fix paths themselves... as
> Josip> long as they don't fuck up anything else in the process :)
>
> Modifying a conffile in user scripts is a violation of
> policy.
Nevertheless, I remember seeing a couple of packages that changed their
config files after an upgrade -- man-db, exim IIRC -- and I was quite glad
I didn't have to do the dirty work of changing things. Whereas I also
remember a bind upgrade that gave me a bucketload of warnings about how the
configuration file was changed in a major way, and after I finally waded
through the docs it turned out the changes were trivial and could have been
done automatically.
YMMV.
--
2. That which causes joy or happiness.
Reply to: