Re: should a postinst script create config files?
On Fri, Feb 22, 2002 at 02:03:53PM +0000, Mark Brown wrote:
> On Fri, Feb 22, 2002 at 08:09:15AM -0500, Andrew Pimlott wrote:
>
> > nice. Maybe that could be implemented by moving the old conffile
> > and not installing the new one, so the service (presumably) will
> > fail due to missing configuration until the admin patches it up.
>
> It might also choose to start with some (perhaps quite inappropraite)
> defaults or otherwise misbehave - dpkg can't safely assume that that is
> how a missing configuration file is going to be handled.
Of course--the packager would have to control the availability of
this option.
Anyway, I know this is a hack way to do it, but I just mentioned it
because it would not require changing much infrastructure.
On Fri, Feb 22, 2002 at 10:37:18AM -0300, Henrique de Moraes Holschuh wrote:
> That will not always work as you would expect. Check out the invoke-rc.d
> stuff in the policy proposals, THAT one will do it.
Cool.
Andrew
Reply to: