Skip to content

Commit

Permalink
Update import.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
frainzy1477 committed Feb 9, 2020
1 parent 037ddfd commit 61e8fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions luasrc/model/cbi/clash/import.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ o.inputtitle = translate("Download Config")
o.inputstyle = "reload"
o.write = function()
kr.uci:commit("clash")
SYS.call("sh /usr/share/clash/clash.sh >>/tmp/clash.txt 2>&1 &")
SYS.call("sh /usr/share/clash/clash.sh >>/usr/share/clash/clash.txt 2>&1 &")
SYS.call("sleep 1")
HTTP.redirect(DISP.build_url("admin", "services", "clash"))
end
Expand All @@ -82,7 +82,7 @@ o.write = function()
kr.uci:commit("clash")
SYS.call("cp /etc/config/clash /usr/share/clash/v2ssr/config.bak 2>/dev/null")
SYS.call("sleep 1")
luci.sys.call("bash /usr/share/clash/v2ssr.sh >>/tmp/clash.txt 2>&1 &")
luci.sys.call("bash /usr/share/clash/v2ssr.sh >>/usr/share/clash/clash.txt 2>&1 &")
HTTP.redirect(DISP.build_url("admin", "services", "clash"))
end
o:depends("subcri", 'v2ssr2clash')
Expand Down Expand Up @@ -138,4 +138,4 @@ if luci.http.formvalue("upload") then
end


return kr,kk,ko
return kr,kk,ko

0 comments on commit 61e8fd8

Please sign in to comment.