From 3eb834c9b0af3b0ac314297f595a735447c6c9b2 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sat, 10 Sep 2022 10:01:20 +0800 Subject: [PATCH] luci-app-alist: fix password printing * daemon.info uwsgi-luci: syntax error: unexpected "&" --- luci-app-alist/luasrc/model/cbi/alist.lua | 2 +- luci-app-alist/root/etc/alist/data.db | Bin 36864 -> 36864 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-alist/luasrc/model/cbi/alist.lua b/luci-app-alist/luasrc/model/cbi/alist.lua index 9a15cbd..f94fda6 100644 --- a/luci-app-alist/luasrc/model/cbi/alist.lua +++ b/luci-app-alist/luasrc/model/cbi/alist.lua @@ -2,7 +2,7 @@ local m, s 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 |& tail -1 | awk -F': ' '{print $2}'") + 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:") .. "" .. password .. "" .. "
" .. [[]] .. translate("User Manual") .. [[]]) else m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. "
" .. [[]] .. translate("User Manual") .. [[]]) diff --git a/luci-app-alist/root/etc/alist/data.db b/luci-app-alist/root/etc/alist/data.db index 920b05455ad2d5ec869ea2e8708775ccde293c45..f310c33ab20fbe17f3e77deda68b47b19e535020 100644 GIT binary patch delta 147 zcmZozz|^pSX@WGP!9*EnMuUwBOY-?xdA~C7oASx4ROn*J65cXKf; delta 143 zcmZozz|^pSX@WGP&O{k!MxBibOY(VGc)v36oASxc#qQv~z4`6n{)=O$+6#V6vH$=8