mirror of https://github.com/aredn/aredn.git
Improve firmwarepath override (#1000)
* Revert accidental feeds change * If firmware path lacks ../firmware on the end, just use as is.
This commit is contained in:
parent
04c68749f5
commit
e23348800f
|
@ -253,7 +253,7 @@ if parms.button_refresh_fw then
|
|||
local config_serverpath
|
||||
for _, serverpath in ipairs(serverpaths)
|
||||
do
|
||||
config_serverpath = serverpath:match("^(.*)/firmware") .. "/afs/www/"
|
||||
config_serverpath = (serverpath:match("^(.*)/firmware") or serverpath) .. "/afs/www/"
|
||||
for line in io.popen(wget .. " -O - " .. config_serverpath .. "config.js 2> /dev/null"):lines()
|
||||
do
|
||||
local v = line:match("versions: {(.+)}")
|
||||
|
|
Loading…
Reference in New Issue