From 29ad113b1c84952ee2e6918ddc9df084fd6826e1 Mon Sep 17 00:00:00 2001 From: joy Date: Wed, 10 Sep 2025 14:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20scripts/deploy=5Fgpu=5Fmon?= =?UTF-8?q?itor.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy_gpu_monitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy_gpu_monitor.sh b/scripts/deploy_gpu_monitor.sh index 005f9af..4fa84d2 100644 --- a/scripts/deploy_gpu_monitor.sh +++ b/scripts/deploy_gpu_monitor.sh @@ -67,7 +67,7 @@ restart_node_exporter() { # 安全添加定时任务(避免重复) add_cron_job() { - local cron_line="${CRON_SCHEDULE} bash ${TARGET_SCRIPT} >> ${LOG_FILE} 2>&1" + local cron_line="${CRON_SCHEDULE} bash ${TARGET_SCRIPT} > ${LOG_FILE} 2>&1" # 检查任务是否已存在(精确匹配) if crontab -l 2>/dev/null | grep -qxF "${cron_line}"; then