Forum: CFEngine Help
Subject: Setting permissions recursively on directories only
Author: btomasini
Link to topic: https://cfengine.com/forum/read.php?3,26235,26235#msg-26235

Hello,

I am trying to fix an apparent problem with a gem install by setting the 
permissions of 0755 on all directories under a matching pattern.  The 
permissions are not set on the child directories.  Here is my promise:


    # Fix bug whereby the gemspec does not get the right perms                  
                                                                                
                         
    "/var/lib/gems/1.8/gems/rudy.*"
      depth_search => recurse("inf"),
      file_select => skipfiles,
      create => "false",
      perms => m("0755");


I get the following output:


Apparent body "skipfiles()" was undeclared, but used in a promise near line 46 
of ./server_provisioning.cf (possible unquoted literal value)
cf-agent was not able to get confirmation of promises from cf-promises, so 
going to failsafe


Thanks in advance,

Ben

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to