[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Copy-once template directories
From: |
Martin, Jason H |
Subject: |
RE: Copy-once template directories |
Date: |
Mon, 19 Sep 2005 07:57:20 -0700 |
Instead of a Files action, use the FileExists function in a class
definition:
HasXYZFile = ( FileExists(/var/tmp/xyz) )
Then, predicate your copy action on !HasXYZFile.
-Jason Martin
> -----Original Message-----
> From:
> help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org
> [mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.
> 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.
>