From 1e5c54a763ce2c9b0833b21913400207076297c3 Mon Sep 17 00:00:00 2001 From: yeti Date: Tue, 7 Feb 2023 13:50:51 +0000 Subject: [PATCH] Update 'Dockerfile' --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e4f0086..04074fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,13 @@ RUN apt-get install -y python3 git snapraid smartmontools tzdata cron 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/crontabs/root +RUN echo '0 3 * * * /usr/bin/python3 /app/snapraid-runner/snapraid-runner.py -c /config/snapraid-runner.conf' > /etc/cron.d/snapraid + +# Give execution rights on the cron job +RUN chmod 0644 /etc/cron.d/snapraid + +# Apply cron job +RUN crontab /etc/cron.d/snapraid VOLUME /mnt /config