Are you trying to reimplement Puppet types and providers in shell? ;-)
On Wed, Apr 24, 2013 at 5:05 PM, Graham Leggett <[email protected]> wrote: > 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 > -- > > > _______________________________________________ > augeas-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/augeas-devel > -- Raphaël Pinson Développeur et Formateur Infrastructure +33 479 926 57 93 Camptocamp France Savoie Technolac BP 352 48, avenue du Lac du Bourget 73372 Le Bourget du Lac, Cedex www.camptocamp.com
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
