Dont truncate /etc/config/vtun on tunnel install (#275)

This commit is contained in:
Tim Wilkinson 2022-03-09 13:34:33 -08:00 committed by GitHub
parent a0e7749b1e
commit 36c3e054ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ function install_vtun()
os.execute("cat /etc/config.mesh/network_tun >> /etc/config.mesh/network")
os.execute("cat /etc/config.mesh/network_tun >> /etc/config/network")
io.open("/etc/config/vtun", "w"):close()
io.open("/etc/config/vtun", "a"):close()
cursor:add("vtun", "options")
cursor:add("vtun", "network")
cursor:commit("vtun")

View File

@ -164,7 +164,7 @@ function install_vtun()
os.execute("cat /etc/config.mesh/network_tun >> /etc/config.mesh/network")
os.execute("cat /etc/config.mesh/network_tun >> /etc/config/network")
io.open("/etc/config/vtun", "w"):close()
io.open("/etc/config/vtun", "a"):close()
cursor:add("vtun", "options")
cursor:add("vtun", "network")
cursor:commit("vtun")