mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
luci-app-ocserv: restart service on user add/remove
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -22,7 +22,7 @@ if m.uci:get("ocserv", "config", "auth") == "plain" then
|
|||||||
--[[Users]]--
|
--[[Users]]--
|
||||||
|
|
||||||
function m.on_commit(map)
|
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
|
end
|
||||||
|
|
||||||
s = m:section(TypedSection, "ocservusers", translate("Available users"))
|
s = m:section(TypedSection, "ocservusers", translate("Available users"))
|
||||||
|
|||||||
Reference in New Issue
Block a user