From 013d2e8ac7b049b71c601eb17eb4e0971619eb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20Hu=CC=88bner?= Date: Sat, 17 Aug 2024 22:31:45 +0200 Subject: [PATCH] aaaaaah --- Dockerfile | 2 ++ delay_price.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c9cfdac..1580bcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,8 @@ ENV PYTHONIOENCODING=utf-8 ADD . / +RUN printenv > /env + RUN echo "*/2 * * * * /delay_price.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/get_price RUN chmod 0644 /etc/cron.d/get_price diff --git a/delay_price.sh b/delay_price.sh index 89f1baa..723a14f 100644 --- a/delay_price.sh +++ b/delay_price.sh @@ -1,5 +1,5 @@ #!/bin/bash -export PYTHONPATH=/usr/local/lib/python3.12/site-packages +source /env sleep 2 -/usr/local/bin/python3 /get_price.py >> /var/log/cron.log 2>&1 \ No newline at end of file +python3 /get_price.py >> /var/log/cron.log 2>&1 \ No newline at end of file