bug-cfengine
[Top][All Lists]
Advanced

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

Re: filters and tidy


From: Robert Shaw
Subject: Re: filters and tidy
Date: Sun, 7 Jan 2001 12:41:41 -0700

Mark,

I think I figured it out. However, can you make sure this is correct. In order to make it delete any link it found, I had to do this:

$(etcprefix) pattern=* filter=badlinks recurse=inf age=0 rmdirs=true dirlinks=tidy

Is that correct? Also, what is the difference between "dirlinks=tidy" and "dirlinks=delete"?? They appear to work the same in my case here.

If I use the above line, I get the following output:

 sudo sbin/cfupdate -n
cf:arizona2: want to delete /etc/cfengine/inputs
cf:arizona2: want to delete /etc/cfengine/filelink1
cf:arizona2: want to delete /etc/cfengine/filelink2
cf:arizona2: want to delete /etc/cfengine/dirlink1
cf:arizona2: want to delete /etc/cfengine/dirlink2

Which is exactly what I would expect. Is this what you would expect?

Thanks.
-Robert

At 9:43 AM -0700 1/7/2001, Robert Shaw wrote:
At 10:00 AM +0100 1/7/2001, address@hidden wrote:

This is a feature. You need to set dirlinks=true if you
want to change the structure of the file tree.

Well, then I think that feature doesn't work. If I change the line:

From:
$(etcprefix)   pattern=*         filter=badlinks recurse=inf age=0

To:
$(etcprefix) pattern=* filter=badlinks recurse=inf age=0 dirlinks=true

I get the following error:

 sudo sbin/cfupdate -n
cf:arizona2:cf.update:47: Illegal linkdirs value, must be keep/delete/tidy
cf:arizona2::Execution terminated after parsing due to errors in program

If I try any of the other values that it lists (keep, delete, tidy), it does the same thing as before (doesn't delete the directory links):

 sudo sbin/cfupdate -n
cf:arizona2: want to delete /etc/cfengine/filelink1
cf:arizona2: want to delete /etc/cfengine/filelink2

Any other ideas???
--
-Robert
 mailto:address@hidden
 AIM: RShawPPC

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]