Displaying 1 result from an estimated 1 matches for "linetest".
Did you mean:
pinetest
2007 Aug 20
1
SimpleTextRecipes
I have copied the simple text snippets into a pp file and set a host to
attempt to add lines, but regardless if the line is there or not, it still
adds it...
what am I doing wrong?
in definitions/linetests.pp:
define append_if_no_such_line($file, $line) {
exec { "echo ''$line'' >> ''$file''":
unless => "grep -qe ''$line'' -- file",
path => "/bin:/usr/bin:/usr/local/bin",...