Forum: CFEngine Help
Subject: Fix group only for files in .svn dir
Author: Igor
Link to topic: https://cfengine.com/forum/read.php?3,23681,23681#msg-23681

Hi!

For example, i need setup group "svn" to all files in .svn dirs recursively:

body common control
{
bundlesequence => { "fix_file_permission_in_svn_dir" };
}


bundle agent fix_file_permission_in_svn_dir
{

vars:
        "SOURCE_DIR_SVN" string => "/var/svn/dirs.*";

files:

        "$(SOURCE_DIR_SVN)" perms => g("svn"),
        depth_search => _recurse_only_svn("inf");
}

body perms g(group)
{
groups => { "$(group)" };
}

body depth_search _recurse_only_svn(d)
{
depth => "$(d)";
include_basedir => "true";
include_dirs => { ".svn" };
}


But this rules dont' work correctly. Where i was wrong?


---
Igor

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

Reply via email to