Skip to content

Commit

Permalink
fix: cron docker
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 18, 2024
1 parent 51326fe commit a572a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cron-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ RUN echo '#!/bin/bash\n\
RUN chmod +x /app/run_task.sh

# 创建一个新的 crontab 文件
RUN echo "0 3 * * * root /app/run_task.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/puppeteer-cron
RUN echo "0 3 * * * root /app/run_task.sh
" > /etc/cron.d/puppeteer-cron

# 给 crontab 文件适当的权限
RUN chmod 0644 /etc/cron.d/puppeteer-cron
Expand Down

0 comments on commit a572a72

Please sign in to comment.