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

Re: How many times run debian/config?



On Fri, May 28, 2004 at 01:09:39PM +0200, Fabio Tranchitella wrote:
> If I install my package with dpkg, it run once, after unpacking... 
> But if I install the package with apt-get, it run twice: before the
> unpacking (Preconfiguring package) and after the unpacking (Configuring
> package), so I have to check if conffiles have already been unpacked
> before trying to modify them. 
> 
> Is it right or I'm missing something?

I think you're misunderstanding the purpose of the config script.  It's only
meant to ask the necessary debconf questions to obtain the data your later
scripts (postinst, mostly) will use to actually configure the package.  In
that sense, it's a bit misnamed -- it really should be called 'preconfig'.

Your postinst script should do the modification of the config files, using
the usual techniques (ucf, et al).

> PS: Please CC me in your answer.

You can aid people in that by setting your Mail-Followup-To: header
appropriately.

- Matt



Reply to: