This commit is contained in:
Copilot 2025-11-08 17:21:11 +00:00 committed by GitHub
commit 50f16f6fa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,10 +24,18 @@ copy_dep() {
pm2_log() {
echo -e "---> pm2日志"
local panelOut="/root/.pm2/logs/panel-out.log"
local panelError="/root/.pm2/logs/panel-error.log"
tail -n 300 "$panelOut"
tail -n 300 "$panelError"
local panelOut="/root/.pm2/logs/qinglong-out.log"
local panelError="/root/.pm2/logs/qinglong-error.log"
if [[ -f "$panelOut" ]]; then
tail -n 300 "$panelOut"
else
echo "日志文件不存在: $panelOut"
fi
if [[ -f "$panelError" ]]; then
tail -n 300 "$panelError"
else
echo "日志文件不存在: $panelError"
fi
}
check_ql() {