help-cfengine
[Top][All Lists]
Advanced

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

Re: This _must_ be stupid, but...


From: Ed Brown
Subject: Re: This _must_ be stupid, but...
Date: Thu, 28 Apr 2005 12:09:15 -0600

This is most direct, since it goes in your copy statement and doesn't
require an additional files statement.  But as to why the files
statement didn't work to remove the link, I think you'd need to add
'recurse=1'.

-Ed



On Thu, 2005-04-28 at 11:46, Christian Pearce wrote:
> Try putting
> 
>             typecheck=off
> 
> on the copy statement of the directory.  This will tell it to ignore the
> fact there is a link there and over write it with the directory.
> 
> 
> On Thu, 2005-04-28 at 18:29 +0200, Marco Marongiu wrote:
> > ...I can't get through. The question is simple: what's the cfengine way 
> > to remove an unwanted link?
> > 
> > I have a directory where I have to copy a file from a master. But in the 
> > destination directory there is a deadlink that prevents the copy to succeed.
> > 
> > I first tried with a tidy action, but it couldn't delete it. I dug in 
> > the documentation, and it looked like I should use "files:" instead. So 
> > I wrote something like this:
> > 
> > files:
> >    any::
> >      ${orafilesdir}  include=thatF_____gLink
> >                      links=tidy
> >                      action=fixall
> > 
> > But it is doing nothing:
> > 
> > ---8<------8<------8<------8<------8<------8<------8<------8<------8<---
> >   Main Tree Sched: files pass 1 @ Thu Apr 28 18:15:04 2005
> > *********************************************************************
> > 
> > Checking file(s) in /value/of/dollar/orafilesdir
> > Saving the setuid log in /var/cfengine/cfagent.ims-pre-at.log
> > ---8<------8<------8<------8<------8<------8<------8<------8<------8<---
> > 
> > I tried many different approaches, but with no success. Can anybody 
> > help, please?
> > 
> > Ciao and thanks
> > --marco
> > 
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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