summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-07-26 10:29:56 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-07-26 10:30:01 +0200
commit44c96038c47280a85fe3cbd95e47aa700ac7a60c (patch)
tree3737c3b56b66078bd40845089ee2b2c3c131e8b4 /net
parentfa34d7ec9ff5f1a9fec2ee1c217512ad025d0f7f (diff)
luci-app-ocserv: restart service on user add/remove
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'net')
-rw-r--r--net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua b/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua
index 0a4a6786c..35c20fc64 100644
--- a/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua
+++ b/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua
@@ -22,7 +22,7 @@ if m.uci:get("ocserv", "config", "auth") == "plain" then
--[[Users]]--
function m.on_commit(map)
- luci.sys.call("/usr/bin/occtl reload >/dev/null 2>&1")
+ luci.sys.call("/etc/init.d/ocserv restart >/dev/null 2>&1")
end
s = m:section(TypedSection, "ocservusers", translate("Available users"))