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

Re: Should ucf be of priority required?



On 2009-12-05, Daniel Baumann <daniel@debian.org> wrote:
> Patrick Schoenfeld wrote:
>> So the call of ucf looks something like that:
>> 
>>     if which ucf >/dev/null; then
>>         ucf --purge /etc/foo.conf
>>     fi    
>
> no, the correct one is:
>
> if which ucf >/dev/null; then
>      $whatever_ucf_command /etc/foo.conf
> else
>      rm -f /etc/foo.conf
> fi
>

-p, --purge
Removes  all  vestiges of the file from the state hashfile. [...]
Note: ucf  does  not actually  touch  the file on disk in this operation, so
any file removals are still the responsibility of the calling package.

See man ucf.

Kind regards,
Philipp kern



Reply to: