Make "tinc add" idempotent.

When calling "tinc add" multiple times with the same variable and value,
make sure only one unique line is added to the configuration file.
This commit is contained in:
Guus Sliepen 2015-02-09 15:23:59 +01:00
parent 0b310bf406
commit 4b2ddded2c
3 changed files with 8 additions and 1 deletions

View file

@ -2293,6 +2293,7 @@ To set a variable for a specific host, use the notation @var{host}.@var{variable
@cindex add
@item add @var{variable} @var{value}
As above, but without removing any previously existing configuration variables.
If the variable already exists with the given value, nothing happens.
@cindex del
@item del @var{variable} [@var{value}]