From: Martin Schiller Date: Tue, 19 Dec 2017 08:56:03 +0000 (+0100) Subject: luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e88a95ca2996beabf1983159c81f168e8de9d54a;p=oweals%2Fluci.git luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit Signed-off-by: Martin Schiller --- diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua index d5e0019eb..45d916d72 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