luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
Martin Schiller 2017-12-19 09:56:03 +01:00
parent 7c643558a3
commit e88a95ca29

View file

@ -125,5 +125,8 @@ function proto.cfgvalue(self, section)
return val or "udp" return val or "udp"
end end
function m.on_after_commit(self,map)
require("luci.sys").call('/etc/init.d/openvpn reload')
end
return m return m