<div dir="ltr">Are you trying to reimplement Puppet types and providers in shell? ;-)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 5:05 PM, Graham Leggett <span dir="ltr"><<a href="mailto:minfrin@sharp.fm" target="_blank">minfrin@sharp.fm</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Regards,<br>
Graham<br>
--<br>
<br>
<br>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Raphaël Pinson<br>
<div>Développeur et Formateur Infrastructure</div><div>+33 479 926 57 93</div><div><br></div><div>Camptocamp France<br>
Savoie Technolac<br>
BP 352<br>
48, avenue du Lac du Bourget<br>
73372 Le Bourget du Lac, Cedex<br>
<a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a><br>
</div></div>
</div>