Make sure we copy /etc/config/vtun to /etc/config.mesh/vtun when installing tunnels. (#299)

This commit is contained in:
Tim Wilkinson 2022-03-17 04:23:40 -07:00 committed by GitHub
parent ad78e077f0
commit 3595dd3ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,7 @@ function install_vtun()
cursor:add("vtun", "options")
cursor:add("vtun", "network")
cursor:commit("vtun")
write_all("/etc/config.mesh/vtun", read_all("/etc/config/vtun"))
http_header()
html.header("TUNNEL INSTALLATION IN PROGRESS", true)

View File

@ -168,6 +168,7 @@ function install_vtun()
cursor:add("vtun", "options")
cursor:add("vtun", "network")
cursor:commit("vtun")
write_all("/etc/config.mesh/vtun", read_all("/etc/config/vtun"))
http_header()
html.header("TUNNEL INSTALLATION IN PROGRESS", true)