Expire docs-drafts more aggressively

* modules/openstack_project/files/log_archive_maintenance.sh: The
majority of the content in drafts is not gzip-compressed files, and
it should be safe to just remove everything old besides what's under
lost+found anyway.

Change-Id: Ib41f6f478e216af45f8fe560651735fb0a77cdf4
This commit is contained in:
Jeremy Stanley 2014-07-28 16:00:39 +00:00
parent f63d7718b9
commit 6d2af3b4a2

View File

@ -9,5 +9,5 @@ find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \
-o \( -type f -mtime +120 -execdir rm \{\} \; \) \
-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 \{\} \; \) \
\( -type f -mtime +21 -execdir rm \{\} \; \) \
-o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)