From 9e91678b114d179e2f491c8bb72b20bb29c8a16c Mon Sep 17 00:00:00 2001 From: ChrQR Date: Thu, 30 May 2024 01:00:22 +0200 Subject: [PATCH] cron -> crontab? --- scrapers/Dockerfile | 2 +- scrapers/crontab | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scrapers/Dockerfile b/scrapers/Dockerfile index afc3e7e..b2bd2e1 100644 --- a/scrapers/Dockerfile +++ b/scrapers/Dockerfile @@ -33,4 +33,4 @@ COPY run_scraper.sh /usr/local/bin/run_scraper.sh RUN chmod +x /usr/local/bin/run_scraper.sh # Run the command on container startup -CMD ["cron", "-f"] +CMD ["crontab", "-f"] diff --git a/scrapers/crontab b/scrapers/crontab index 0603ef6..a12aa0f 100644 --- a/scrapers/crontab +++ b/scrapers/crontab @@ -1,4 +1,2 @@ # Run the scraper every hour -SHELL=/bin/sh -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 0 * * * * root /usr/local/bin/run_scraper.sh >> /var/log/cron.log 2>&1