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

Re: why do we care about configuration files?

>> On 19 Apr 2003 00:07:54 -0400,
>> Anthony DeRobertis <asd@suespammers.org> said: 

 > Is it just me, or would this fix the problem simply:
 > 1) If a postinst generates a configuration file with debconf, it
 >       must place the md5sum of the generated configuration file in
 >       /var

 > 2) A package should try and parse the current configuration file
 >       back into debconf before prompting.

 > 3) After prompting, the package must confirm that the current
 >       md5sum matches the one stored in /var. If it does and the
 >       package succeeded at (2) it may replace the configuration
 >       file. Otherwise, use ucf.

	Or, simply generate the file using debconf or whatever, and
 call ucf directly; then ucf handles storing the md5sum and comparing
 it for you seamlessly.

The best man for the job is often a woman.
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply to: