[augeas-devel] Create or update

Graham Leggett minfrin at sharp.fm
Wed Apr 24 15:05:53 UTC 2013


Hi all,

What I am trying next is to get "create or update" behaviour to work. In other words, if the entry doesn't exist, create it, but if the entry does exist, update it.

Trawling google suggests that augtool can't do this (but it would be good to have formal confirmation), so I'm trying to do this by running augtool directly.

Is there a way for augtool to return a status code of some kind if the entry I expect doesn't exist? I can then test for the status, and then create or update as needed.

Regards,
Graham
--

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4365 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20130424/734e3049/attachment.p7s>


More information about the augeas-devel mailing list