Hi all,

I am trying to edit a postfix main.cf with with augtool, and am struggling with 
arrays.

I can add a particular value to a given array with the set command, for example 
like this:

augtool> set /files/etc/postfix/main.cf/virtual_alias_maps[last()] my-map

I am struggling with the syntax to remove this value "my-map" again:

augtool> rm [what-goes-here?]

I have no idea how many elements there will be in the virtual_alias_maps 
parameter when I start, there could be zero, and I have no idea how many there 
will be when the time comes to remove the entries, so absolute values for the 
array index are out.

Is this possible with augtool?

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to