Fixes for cron

This commit is contained in:
iosullivan committed 2026-07-18 14:51:18 +08:00
1 parent 4ca029813e
commit 42e680e69f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ Clone this archive, build and run the image. Pass in your API_KEY and map the ou
git clone https://https://gitea.iosull.com/iosullivan/cta-archive git clone https://https://gitea.iosull.com/iosullivan/cta-archive
cd cta-archive cd cta-archive
docker build -t cta-archive . docker build -t cta-archive .
docker run cta-archive -d -e API_KEY=<APIKey> -v <outputdir>/usr/cta-archive/output/ docker run cta-archive --name cta-archive -d -e API_KEY=<APIKey> -v <outputdir>/usr/cta-archive/output/
``` ```
By default, the script runs every 5 minutes to log. This can be modified by updating the cronjob file. By default, the script runs every 5 minutes to write json file to the <outputdir> above. This can be modified by updating the cronjob file.
+1 -1
View File
@@ -1 +1 @@
2 * * * * python3 /usr/cta-archive/archive.py > /proc/1/fd/1 2>/proc/1/fd/2 5 * * * * python3 /usr/cta-archive/archive.py > /proc/1/fd/1 2>/proc/1/fd/2