Unless I'm doing something wrong, I believe there is a bug with the editfile's
command "DeleteLinesNotStarting" as it doesn't appear to be working.
Here is the context I am using it in. I want everything in the file,
/etc/securetty, removed except for "console".
editfiles:
linux::
{ /etc/securetty
DeleteLinesNotStarting "console"
}
The file does not change. However, if I try to delete specific lines using
DeleteLinesStarting, it works fine. Example:
editfiles:
linux::
{ /etc/securetty
DeleteLinesStarting "tty"
DeleteLinesStarting "vc"
}
Everything starting with "tty" or "vc" is removed. I'm using version 2.2.8.
Thanks,
Andy
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine