Pieter,

You need to split your promises in two : one that only copies the file
(and don't set the permission), and one that sets the permissions

Regards,
Nicolas

On Sun, Apr 4, 2010 at 3:51 PM,  <fo...@cfengine.com> wrote:
> Forum: Cfengine Help
> Subject: Re: Cfengine Help: Remote file comparison (md5)
> Author: pieterb
> Link to topic: https://cfengine.com/forum/read.php?3,16772,16774#msg-16774
>
> Nicolas,
>
> that seems to have done the trick, thanks. The problem I have now is that I 
> cannot seem to separate the setting of permissions by the copy_from the 
> actual copying, resulting in a promise_kept; the file is different, but the 
> permissions are ok, so cfengine returns promise_repaired, and promise_kept.
> Any way to separate the if_else() operator from this?
>
> Thanks,
> Pieter
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to