From 7d2a570924b94b440c1e54bd8aefccafa9d8e913 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 17:15:12 +0000 Subject: [PATCH 1/2] Initial plan From f33d5e8cdfe658afafe3d811c04d0cf9d733c899 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 17:21:08 +0000 Subject: [PATCH 2/2] Fix PM2 log file path and add existence checks Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- shell/check.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/shell/check.sh b/shell/check.sh index fd2cd6c9..227a8e04 100755 --- a/shell/check.sh +++ b/shell/check.sh @@ -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() {