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

Re: Ask user in postinst for overwrite of config file



Am Montag, 30. Oktober 2006 10:11 schrieb Michael Tautschnig:
> > Hello,
> >
> > i have a package which provides a template config file.
> > It asks several debconf questions and generate a config file inside
> > /etc where all template variables was replaced with debconf
> > responses.
> >
> > After a package upgrade i want to check if the generated config
> > file was modified by user with a md5sum and ask the user if i can
> > override the existing config file (only if different) with the new
> > generated version.
> > But a read inside postinst can't take a response from user. How can
> > i do this? Is there a better solution for this problem?
>
> What about ucf  - I think it is supposed to do exactly that.

thanks, yes this is exactly what i need

-- 
Markus Schulz - msc@antzsystem.de



Reply to: