From 69b1801b11af87685761927488937ac18592b42c Mon Sep 17 00:00:00 2001 From: 14790897 <14790897abc@gmail.com> Date: Thu, 11 Apr 2024 09:34:12 +0800 Subject: [PATCH] fix: cron --- cron-Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron-Dockerfile b/cron-Dockerfile index 1f6fc04d..a7482341 100644 --- a/cron-Dockerfile +++ b/cron-Dockerfile @@ -63,7 +63,7 @@ COPY . . RUN chmod +x /app/pteer.js # 创建一个新的 crontab 文件 -RUN echo "0 3 * * * node /app/pteer.js >> /var/log/cron.log 2>&1" > /etc/cron.d/puppeteer-cron +RUN echo "0 3 * * * root node /app/pteer.js >> /var/log/cron.log 2>&1" > /etc/cron.d/puppeteer-cron # 给 crontab 文件适当的权限 RUN chmod 0644 /etc/cron.d/puppeteer-cron