[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to override a conffile (not using dpkg-divert)?



On Fri, 10 Feb 2017, Harald Dunkel wrote:
> Not to mention the config file conflicts on the next upgrade, even if
> the DM changed only a single comment line. Plus there is no
> notification to run my postinst script again.

If this is a configuration package, then presumably you want
--force-confdef, so you don't need to rerun the postinst at all.

Or if you really want, you *can* divert them.[1,2] You just can't do that in
something that you upload to Debian.

Though you really probably want to be using puppet, chef, or something
similar instead.

> I have to make sure that the host configuration follows certain rules
> on all machines, e.g. for introducing signed host certificates for
> sshd, for the ldap/kerberos integration, etc.

Do whatever you want when you're the administrator! Just don't do this
in a package you're distributing when you're not.


1: https://wiki.debian.org/ConfigPackages
2: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476899

-- 
Don Armstrong                      https://www.donarmstrong.com

Our days are precious, but we gladly see them going
If in their place we find a thing more precious growing
A rare, exotic plant, our gardener's heart delighting
A child whom we are teaching, a booklet we are writing
 -- Frederick Rükert _Wisdom of the Brahmans_ 
 [Hermann Hesse _Glass Bead Game_]


Reply to: