From ad688fbaa54064bc23f6fee143e07000bba66897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20Hu=CC=88bner?= Date: Sat, 17 Aug 2024 23:16:14 +0200 Subject: [PATCH] aaaaaaaaaa --- Dockerfile | 2 +- delay_price.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1533db1..586ed88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ENV PYTHONIOENCODING=utf-8 ADD . /app -RUN echo "*/2 * * * * /app/delay_price.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/get_price +RUN echo -e "SHELL=/bin/bash\n* * * * * root /app/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 9f9fde7..2515c71 100644 --- a/delay_price.sh +++ b/delay_price.sh @@ -1,5 +1,6 @@ #!/bin/bash source /app/env +printenv sleep 2 python3 /app/get_price.py >> /var/log/cron.log 2>&1 \ No newline at end of file