Merge "Fix empty directory removal for log expiration"

This commit is contained in:
Jenkins 2014-06-03 00:44:16 +00:00 committed by Gerrit Code Review
commit f79ec7b408

View File

@ -7,7 +7,7 @@ find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \
\( -name \*.txt -or -name \*.html -or -name tmp\* \) \
-exec gzip \{\} \; \) \
-o \( -type f -mtime +120 -execdir rm \{\} \; \) \
-o \( -type d -not -empty -mtime +1 -execdir rmdir {} \; \) \)
-o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)
find -O3 /srv/static/docs-draft/ -depth -not -name lost+found \( \
\( -type f -mtime +21 -name \*.gz -execdir rm \{\} \; \) \
-o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)