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: Christian Pearce
Subject: Re: This _must_ be stupid, but...
Date: Thu, 28 Apr 2005 13:46:56 -0400

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
-- 
Christian Pearce
http://www.sysnav.com
http://www.commnav.com
http://www.perfectorder.com

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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