mirror of https://github.com/aredn/aredn.git
bugfix: tunnels: Tunnel config is deleted by saving changes on node.
Make sure we always save a copy of the tunnel config to /etc/config.mesh/ not just when we have an error.
This commit is contained in:
parent
fbb98d0539
commit
0aaa6b6204
|
@ -197,8 +197,8 @@ if($parms{button_save} and not @cli_err)
|
|||
if (&uci_commit("vtun"))
|
||||
{
|
||||
push(@errors,"Problem committing UCI vtun");
|
||||
system("cp -f /etc/config/vtun /etc/config.mesh");
|
||||
}
|
||||
system("cp -f /etc/config/vtun /etc/config.mesh");
|
||||
unless($debug == 3)
|
||||
{
|
||||
# Regenerate olsrd files and restart olsrd
|
||||
|
|
|
@ -175,8 +175,8 @@ if($parms{button_save} and not @conn_err)
|
|||
if (&uci_commit("vtun"))
|
||||
{
|
||||
push(@errors,"Problem committing UCI vtun");
|
||||
system("cp -f /etc/config/vtun /etc/config.mesh");
|
||||
}
|
||||
system("cp -f /etc/config/vtun /etc/config.mesh");
|
||||
unless($debug == 3)
|
||||
{
|
||||
# Regenerate olsrd files and restart olsrd
|
||||
|
|
Loading…
Reference in New Issue