luci: app_update use default_path when not set in config
This commit is contained in:
parent
3795defad7
commit
623099d837
@ -413,7 +413,9 @@ local function get_bin_version_cache(file, cmd)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function get_app_path(app_name)
|
function get_app_path(app_name)
|
||||||
|
local def_path = com[app_name].default_path
|
||||||
local path = uci_get_type("global_app", app_name:gsub("%-","_") .. "_file")
|
local path = uci_get_type("global_app", app_name:gsub("%-","_") .. "_file")
|
||||||
|
path = path and (#path>0 and path or def_path) or def_path
|
||||||
return path
|
return path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user