Commit 87345266 authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

disabled the "make sure that last command in the cron file ends with a...

disabled the "make sure that last command in the cron file ends with a newline" crontab entry, as it cause problems in some situations
parent 226c27a1
......@@ -52,8 +52,8 @@ RUN groupadd cron && useradd -g cron -s /bin/bash cron && passwd -d cron && mkdi
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\tcron\t\4\n/' /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\\\tcron\\\t\\\4/' /etc/cron.d/*" >> /etc/crontab \
&& echo "*/15 * * * * root /bin/chown root:root /etc/cron.d/* && /bin/chmod u=rw,go= /etc/cron.d/*" >> /etc/crontab \
&& echo "*/15 * * * * root sed -i -r -e '$ s/^(.+)$/\\\1\\\n/' /etc/cron.d/*" >> /etc/crontab
&& echo "*/15 * * * * root /bin/chown root:root /etc/cron.d/* && /bin/chmod u=rw,go= /etc/cron.d/*" >> /etc/crontab
# && echo "*/15 * * * * root sed -i -r -e '$ s/^(.+)$/\\\1\\\n/' /etc/cron.d/*" >> /etc/crontab
RUN mkdir /var/pubkeys
......@@ -68,4 +68,4 @@ VOLUME ["/etc/cron.d", "/etc/cron.daily", "/etc/cron.hourly", "/etc/cron.monthly
WORKDIR /etc
# command and entrypoint
CMD ["/run.sh"]
\ No newline at end of file
CMD ["/run.sh"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment