luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit 1481/head
authorMartin Schiller <ms@dev.tdt.de>
Tue, 19 Dec 2017 08:56:03 +0000 (09:56 +0100)
committerMartin Schiller <ms@dev.tdt.de>
Thu, 15 Feb 2018 05:14:24 +0000 (06:14 +0100)
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua

index d5e0019eb7af959f37ee7f7adb8b8a3d4ad662ee..45d916d7275b8c3f726b13af1d5c96c6870e2744 100644 (file)
@@ -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