From 000086be6940305c2a9a6a35707da04f204e9827 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sun, 10 Nov 2019 15:08:57 +0800 Subject: [PATCH] luci-app-openclash: typo fix --- .../files/usr/lib/lua/luci/model/cbi/openclash/servers.lua | 2 +- .../files/usr/lib/lua/luci/model/cbi/openclash/settings.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/servers.lua b/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/servers.lua index ff0c12e18d..e6c519ba44 100644 --- a/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/servers.lua +++ b/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/servers.lua @@ -162,7 +162,7 @@ o.inputstyle = "apply" o.write = function() m.uci:set("openclash", "config", "enable", 0) m.uci:commit("openclash") - luci.sys.call("sh /usr/share/openclash/yml_groups_get.sh 2>/dev/null &") + luci.sys.call("/usr/share/openclash/yml_groups_get.sh 2>/dev/null &") luci.http.redirect(luci.dispatcher.build_url("admin", "services", "openclash")) end diff --git a/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/settings.lua b/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/settings.lua index a7635d26ae..ce447c65e1 100644 --- a/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/settings.lua +++ b/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/settings.lua @@ -280,7 +280,7 @@ o.write = function() m.uci:set("openclash", "config", "enable", 1) m.uci:commit("openclash") SYS.call("rm -rf /etc/openclash/config.bak 2>/dev/null") - SYS.call("sh /usr/share/openclash/openclash.sh >/dev/null 2>&1 &") + SYS.call("/usr/share/openclash/openclash.sh >/dev/null 2>&1 &") HTTP.redirect(DISP.build_url("admin", "services", "openclash")) end