Merge "Don't remove lost+found from static.o.o."

This commit is contained in:
Jenkins 2013-07-25 07:31:00 +00:00 committed by Gerrit Code Review
commit 7de0819e3d
1 changed files with 4 additions and 2 deletions

View File

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