gnu.cfengine.help
[Top] [All Lists]

Directories action - only create if parents exist

Subject: Directories action - only create if parents exist
From: "Mark"
Date: Tue, 27 Sep 2005 16:35:06 -0700
Newsgroups: gnu.cfengine.help
Hi,

I use this directories-action:

    /usr/java/tomcat/logs
      mode=775
      owner=root
      group=root

However, I only want /usr/java/tomcat/logs to be created if /usr/java/tomcat 
already exists.
Is there a parameter that lets me specify this?? I know I can use FileExists to 
set another class and then only execute the action
if the class is set, but I thought I'd ask if there is a quicker way...

Currently, it creates /usr/java/tomcat as well, which breaks other things 
somewhere else.

Thanks,

MARK




<Prev in Thread] Current Thread [Next in Thread>
  • Directories action - only create if parents exist, Mark <=