redirect stout cron output to cron process

ubuntu
simonk 3 years ago
parent 03f9681a6c
commit bbfad5620b

@ -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

Loading…
Cancel
Save