From bbfad5620b7193e3ba2b5fdbab4d28003a3d668b Mon Sep 17 00:00:00 2001 From: simonk Date: Sat, 25 Feb 2023 11:29:54 +0100 Subject: [PATCH] redirect stout cron output to cron process --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c5a7642..57dceda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y python3 git snaprai RUN git clone https://github.com/Chronial/snapraid-runner.git /app/snapraid-runner RUN chmod +x /app/snapraid-runner/snapraid-runner.py -RUN echo '0 3 * * * /usr/bin/python3 /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf' > /etc/cron.d/snapraid +RUN echo '0 3 * * * /usr/bin/python3 /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf > /proc/$(cat /var/run/crond.pid)/fd/1 2>&1' > /etc/cron.d/snapraid # Give execution rights on the cron job RUN chmod 0644 /etc/cron.d/snapraid