Browse Source

luci-app-ocserv: restart service on user add/remove

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 11 years ago
parent
commit
44c96038c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua

+ 1
- 1
net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua View File

@ -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"))


Loading…
Cancel
Save