On 2009-12-05, Daniel Baumann <dan...@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



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to