Moin,
I can set a class based on the existence of a file with fileexists. But
sometimes I have to set a class if a file exists in directory "/a" or
"/b" or "/c". I can use something like this:
"exists_in_a" expression => fileexists("/a/foo");
"exists_in_b" expression => fileexists("/b/foo");
"exists_in_c" expression => fileexists("/c/foo");
"exists" or => { "exists_in_a","exists_in_b","exists_in_c" };
Is there a more "elegant" way to check for a file?
Many thanks
Matthias
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine