mirror of https://github.com/aredn/aredn.git
Dont truncate /etc/config/vtun on tunnel install (#275)
This commit is contained in:
parent
a0e7749b1e
commit
36c3e054ac
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue