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

Re: Re: RFS: personalbackup



On Thu, Sep 07, 2006 at 08:27:43PM +0200, kku wrote:
> >You are programaticaly managing a configuration file in /etc. You
> >should look into using ucf, that already handles this.
> 
> I've had a look at ucf, but I do not think it fits my need (unless I have 
> overlooked something).
> 
> I have a template file 
> "/usr/share/doc/personalbackup/personalbackup.apache" and the parameter 
> "webalias"
> is being replaced in that template during postinst. Depending on the user's 
> choose for apache/apache2 this file will be placed in 
> '/etc/apache/conf.d/personalbackup' or 
> '/etc/apache2/sites-enabled/personalbackup'
> 
> 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

 ...
 This script attempts to provide conffile like handling for files that
 can not be labelled conffiles, are not shipped in a Debian package,
 but handled by the postinst instead.  This script allows one to
 maintain files in /etc, preserving user changes and in general
 offering the same facilities while upgrading that dpkg normally
 provides for "conffiles".
 ...

-- 
Rodrigo Gallardo
GPG-Fingerprint: 7C81 E60C 442E 8FBC D975  2F49 0199 8318 ADC9 BC28

Attachment: signature.asc
Description: Digital signature


Reply to: