luci-app-alist: disable password printing for now
This commit is contained in:
parent
743a3a3bc1
commit
cc13b279f9
@ -1,12 +1,12 @@
|
||||
local m, s
|
||||
local sys = require "luci.sys"
|
||||
--local sys = require "luci.sys"
|
||||
|
||||
if sys.call("pidof alist >/dev/null") == 0 then
|
||||
local password = sys.exec("/usr/bin/alist --conf /etc/alist/config.json password 2>&1 | tail -1 | awk -F': ' '{print $2}'")
|
||||
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. " " .. translate("manage password:") .. "<font color=\"green\">" .. password .. "</font>" .. "<br/>" .. [[<a href="https://alist.nn.ci/guide/drivers/local.html" target="_blank">]] .. translate("User Manual") .. [[</a>]])
|
||||
else
|
||||
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. "<br/>" .. [[<a href="https://alist.nn.ci/guide/drivers/local.html" target="_blank">]] .. translate("User Manual") .. [[</a>]])
|
||||
end
|
||||
--if sys.call("pidof alist >/dev/null") == 0 then
|
||||
-- local password = sys.exec("/usr/bin/alist --conf /etc/alist/config.json password 2>&1 | tail -1 | awk -F': ' '{print $2}'")
|
||||
-- m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. " " .. translate("manage password:") .. "<font color=\"green\">" .. password .. "</font>" .. "<br/>" .. [[<a href="https://alist.nn.ci/guide/drivers/local.html" target="_blank">]] .. translate("User Manual") .. [[</a>]])
|
||||
--else
|
||||
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. translate("Default username and password:") .. "<font color=\"green\">admin / admin</font>" .. "<br/>" .. [[<a href="https://alist.nn.ci/guide/drivers/local.html" target="_blank">]] .. translate("User Manual") .. [[</a>]])
|
||||
--end
|
||||
|
||||
m:section(SimpleSection).template = "alist_status"
|
||||
|
||||
|
@ -55,3 +55,6 @@ msgstr "用户手册"
|
||||
#: luci-app-alist/luasrc/model/cbi/alist.lua:35
|
||||
msgid "Allow Access From Internet"
|
||||
msgstr "允许从外网访问"
|
||||
|
||||
msgid "Default username and password:"
|
||||
msgstr "默认用户名和密码:"
|
||||
|
Loading…
Reference in New Issue
Block a user