luci-app-ssr-plus: change delete all nodes logic

This commit is contained in:
LEAN-ESX 2020-03-08 10:52:36 -07:00
parent d5ddb7e8a5
commit 3859a2d6f8
2 changed files with 6 additions and 4 deletions

View File

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

View File

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