Skip to content

Commit

Permalink
remove mul-feature support,fix feature file upload error
Browse files Browse the repository at this point in the history
  • Loading branch information
destan19 committed Oct 29, 2022
1 parent aac86d6 commit e6cf045
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions luci-app-oaf/luasrc/model/cbi/appfilter/feature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,7 @@ http.setfilehandler(function(meta, chunk, eof)
local line = fd2:read("*l");
fd2:close()
local ret = string.match(line, "#version")
local lang = m.uci:get_all("luci.main.lang")
local feature_file = ""
if "" == lang or "auto" == lang then
feature_file = "/etc/appfilter/feature.cfg"
else
feature_file = "/etc/appfilter/feature_" .. lang .. ".cfg"
end
local feature_file = "/etc/appfilter/feature.cfg"
if ret ~= nil then
local cmd = "cp /tmp/upload/" .. meta.file .. " " .. feature_file;
os.execute(cmd);
Expand Down

0 comments on commit e6cf045

Please sign in to comment.