luci-app-ssr-plus: change delete all nodes logic
This commit is contained in:
parent
d5ddb7e8a5
commit
3859a2d6f8
@ -1,8 +1,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-ssr-plus
|
||||
PKG_VERSION:=164
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=165
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
||||
@ -66,8 +66,10 @@ uci:delete_all("shadowsocksr", "servers", function(s)
|
||||
return false
|
||||
end
|
||||
end)
|
||||
uci:save("shadowsocksr")
|
||||
luci.sys.call("uci commit shadowsocksr && /etc/init.d/shadowsocksr stop")
|
||||
uci:save("shadowsocksr")
|
||||
uci:commit("shadowsocksr")
|
||||
luci.sys.init.stop("shadowsocksr")
|
||||
luci.sys.init.start("shadowsocksr")
|
||||
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "shadowsocksr", "servers"))
|
||||
return
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user