summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2017-12-19 09:56:03 +0100
committerMartin Schiller <ms@dev.tdt.de>2018-02-15 06:14:24 +0100
commite88a95ca2996beabf1983159c81f168e8de9d54a (patch)
treec965ab8e1be60752ca10c0d060c6dcfd6a1d24f0 /applications/luci-app-openvpn/luasrc
parent7c643558a32e330ccb667f95ac8b6626fc86458d (diff)
luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
index d5e0019eb7..45d916d727 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
@@ -125,5 +125,8 @@ function proto.cfgvalue(self, section)
return val or "udp"
end
+function m.on_after_commit(self,map)
+ require("luci.sys").call('/etc/init.d/openvpn reload')
+end
return m