diff --git a/images/cron/Dockerfile b/images/cron/Dockerfile index e04cb4e..5e2a7aa 100644 --- a/images/cron/Dockerfile +++ b/images/cron/Dockerfile @@ -22,7 +22,7 @@ RUN DEBIAN_FRONTEND=noninteractive \ # finally, make sure that this sed script runs every few minutes on all /etc/cron.d files RUN rm -rf /etc/cron.*/* \ && sed -i -r -e 's/^(([/0-9*,-]+\s+){5}|@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)\s+)root\s+(.*)/\1\tnobody\t\4/' /etc/crontab \ - && echo "*/15 * * * * root sed -i -r -e 's/^(([/0-9*,-]+\s+){5}|@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)\s+)root\s+(.*)/\\1\\tnobody\\t\\4/' /etc/cron.d/*" >> /etc/crontab + && echo "*/15 * * * * root sed -i -r -e 's/^(([/0-9*,-]+\s+){5}|@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)\s+)root\s+(.*)/\\\1\\\tnobody\\\t\\\4/' /etc/cron.d/*" >> /etc/crontab # cron volumes VOLUME ["/etc/cron.d", "/etc/cron.daily", "/etc/cron.hourly", "/etc/cron.monthly", "/etc/cron.weekly"]