Forum: CFEngine Help
Subject: Re: editfiles question
Author: jblaine
Link to topic: https://cfengine.com/forum/read.php?3,23396,23413#msg-23413

sgsax Wrote:
-------------------------------------------------------
> I'm running cfengine 2.2.10 and want to be able to
> use editfiles to edit a file conditionally based
> on class.  Something like this:
> 
> 
> editfiles:
>     class1::
>     { myfile
>         AppendIfNoSuchLine "foo"
>     }

You need to SetLine before you can AppendIfNoSuchLine

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

Reply via email to