Merge "Don't compress very, very recent log files"

This commit is contained in:
Jenkins 2013-08-15 01:50:42 +00:00 committed by Gerrit Code Review
commit aae845380c

View File

@ -3,7 +3,7 @@ sleep $((RANDOM%600)) && \
flock -n /var/run/gziplogs.lock \
find /srv/static/logs/ -depth \
\( \
\( -type f -not -name robots.txt \
\( -type f -mmin +10 -not -name robots.txt \
-not -wholename /srv/static/logs/help/\* \
-not -name \*\[.-\]gz -not -name \*\[._-\]\[zZ\] \
\( -name \*.txt -or -name \*.html -or -name tmp\* \) \