[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Copy command copies directories I don't want
From: |
Mark |
Subject: |
RE: Copy command copies directories I don't want |
Date: |
Tue, 30 Aug 2005 18:03:11 -0700 |
Yes, that's what I tried initially and that didn't work - which was why I
started this thread.
I tried "r=0" and cfengine did not copy any files out of of any the
subdirectories over, but it still DID create the empty directoy
I didn't want (for example ha.d)...
That's why I tried to add a filter which was supposed to prevent
creation/copying of any directory, no matter on which level.
Below are my copy action and my directory structure:
$(config_download_dir)/etc/
trustkey=true
action=fix
dest=/etc/
r=0
mode=0644
owner=root
group=root
server=$(policy_host)
include=hosts
include=/etc/openldap/ldap.conf
include=ldap.conf
include=nsswitch.conf
include=system-auth
type=checksum
etc
|- ldap.conf
|- pam.d
| +- system-auth
|
|- openldap
| +- ldap.conf
|
|- ha.d
| +- <somefiles>
+- ipsec.d
|- autostart.d.___hq___
+ <somefiles>
> -----Original Message-----
> From: Mark Burgess [mailto:mark@iu.hio.no]
> Sent: Monday, August 29, 2005 10:25 PM
> To: Mark
> Cc: 'Mark Burgess'; help-cfengine@gnu.org
> Subject: RE: Copy command copies directories I don't want
>
>
> On Mon, 2005-08-29 at 15:42 -0700, Mark wrote:
> > So wouldn't my filter mean "pass all files that are not
> directories,
> > and do not copy directories"?
> >
>
> If you don't want to copy directories, then say recurse=0.
> you can't copy files without copying the directories to
> contain them...
>
> M
>