更新 scripts/deploy_gpu_monitor.sh

asdf
This commit is contained in:
joy 2025-10-31 12:44:36 +08:00
parent da4bcb9863
commit 0e5bb3574a
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ uninstall_script() {
# 1. 移除定时任务
echo -e "${BLUE}删除定时任务...${NC}"
local cron_line="${CRON_SCHEDULE} ${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
# 备份现有crontab