[Top][All Lists]

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

Re: Copy-once template directories

From: Geoff Davis
Subject: Re: Copy-once template directories
Date: Mon, 19 Sep 2005 12:04:51 -0700

Excellent, thanks to all for your suggestions.

FileExists seems to be the cleanest of the solutions. The one caveat to it seems to be that I can't use variables in FileExists since variables get defined in the command block, but I think can I work around that.

On Sep 19, 2005, at 7:57 AM, Martin, Jason H wrote:

Instead of a Files action, use the FileExists function in a class

HasXYZFile = ( FileExists(/var/tmp/xyz) )

Then, predicate your copy action on !HasXYZFile.

-Jason Martin

-----Original Message-----
org] On Behalf Of Geoff Davis

I was thinking of using a files action to check for the existence of
the data directory and set define a class, but our
action_sequence is
defined such that the copy action is run before the files action.
This is because we have some files that we copy over, then check the
permissions with the files action. Switching their order would leave
us in the wrong state.

Help-cfengine mailing list

reply via email to

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