cron naprawiony -- teraz poprawnie będzie podmieniał juzera root na nobody

master
Michał 'rysiek' Woźniak 2015-01-06 20:34:03 +01:00
parent c1fe3b7b24
commit 9fdfbb618b
1 changed files with 1 additions and 1 deletions

View File

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