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

Re: bug #561324: asking questions in postinst



Hi Reiner,

On Mon, Dec 28, 2009 at 04:40:50PM +0100, Reinier Haasjes wrote:
> Hi,
> 
> I'm trying to solve bug #561324 which uses it's own binary in the config
> script.
> 
> It uses it's own binary to get some information (tunnel id) which uses
> login+password to retrieve, it really needs this to compile a good
> config script (if you have more than 1 tunnel).
> 
> My idea on solving this is to move the complete config script to
> postinst and ask all the question there.
> I read everywhere that this is not the preferred way to go but I can't
> discover if it is prohibited by the policy.
> 
> Is it prohibited by the policy to ask questions in the postinst-script?

Nop.

> Does somebody know a better way of solving this?

You can use debconf for that. Take a look at the documentation available in
debconf-doc package.

Regards,

-- 
Tiago Bortoletto Vaz
http://tiagovaz.org
0xA504FECA - http://pgp.mit.edu

Attachment: signature.asc
Description: Digital signature


Reply to: