[augeas-devel] Re: logrotate and prerotate/postrotate

Marc Fournier marc.fournier at camptocamp.com
Mon Jun 8 19:59:31 UTC 2009


> You're being hit by a double-whammy: the logrotate lens requires that
> the value for postrotate ends with a newline, but augtool won't let
> you include newlines in the value (if you try something like 'set /foo
> "foobar\n"', the value in the tree will end with a '\' followed by an
> 'n'
> 
> I think the fix for this is twofold: change the logrotate lens to not
> require '\n' at the end of a script (it can insert that by itself) and
> make augtool interpret escape characters in strings.

Thanks for these details, David. And thanks so much for the pair of
patches you just commited in the tree ! They just works out of the box
for me, with augeas 0.5.0 (redhat rpm).

Marc





More information about the augeas-devel mailing list