Re: RFS: personalbackup
On Thu, Sep 07, 2006 at 10:18:29PM -0500, Luis Rodrigo Gallardo Cruz wrote:
> On Fri, Sep 08, 2006 at 10:01:47AM +1000, Matthew Palmer wrote:
> > On Thu, Sep 07, 2006 at 05:26:53PM -0500, Luis Rodrigo Gallardo Cruz wrote:
> > > On Thu, Sep 07, 2006 at 08:27:43PM +0200, kku wrote:
> > > > Now to detect that the user did (not) change the conf file, I check the
> > > > md5sum of the content of the appropriate conf file 'except' for the Alias
> > > > line.
> > > > And as far as I can see this is something ucf cannot handle...or am I wrong
> > > > here?
> > >
> > > Uhh. From apt-cache show ucf
> > Luis, I think you missed a critical bit of what's being done with the config
> > file -- the md5sum of only part of the config file is being checked, which
> > (unless it's has had some *very* interesting features added lately) ucf
> > can't do.
> Indeed. Must read more carefuly next time.
> Now, from a mentoring point of view, what should kku do? Create the
> file on first install acording to the user's answer, then consider the
> *resulting* file a conffile and treat it accordingly?
That would certainly be my best recommendation. Since the package can't
ship a stock conffile, the only options are to use ucf to manage the update
of the file or to rewrite ucf's functionality (been there, done that,
trained professionals, don't try this at home, etc).