Re: Should ucf be of priority required?
On Sat, Dec 05, 2009 at 07:16:58PM +0100, Daniel Baumann 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
You don't get the point. ucf does not remove the files, it removes
the files from its own registry. So your if-else doesn't really help.
Best Regards,
Patrick
Reply to: