From bdd3db0d9e0bf3109fbe2af3fee3731c9fd8478f Mon Sep 17 00:00:00 2001 From: 14790897 <14790897abc@gmail.com> Date: Thu, 18 Apr 2024 16:55:31 +0800 Subject: [PATCH] fix: cron --- cron-Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron-Dockerfile b/cron-Dockerfile index ed974818..3062798e 100644 --- a/cron-Dockerfile +++ b/cron-Dockerfile @@ -67,7 +67,7 @@ RUN chmod +x /app/pteer.js # 创建一个新的脚本文件 RUN echo '#!/bin/bash\n\ - /usr/local/bin/node /app/pteer.js >> /var/log/cron.log 2>&1 &\n\ + node /app/pteer.js >> /var/log/cron.log 2>&1 &\n\ sleep 10m\n\ pkill -f "node /app/pteer.js"\n' > /app/run_task.sh