Merge "Don't remove lost+found from static.o.o."
This commit is contained in:
commit
7de0819e3d
@ -9,10 +9,12 @@ find /srv/static/logs/ -depth \
|
|||||||
\( -name \*.txt -or -name \*.html -or -name tmp\* \) \
|
\( -name \*.txt -or -name \*.html -or -name tmp\* \) \
|
||||||
-exec gzip \{\} \; \) \
|
-exec gzip \{\} \; \) \
|
||||||
-o \( -type f -mtime +183 -name \*.gz -execdir rm \{\} \; \) \
|
-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 \
|
find /srv/static/docs-draft/ -depth \
|
||||||
\( \
|
\( \
|
||||||
\( -type f -mtime +30 -name \*.gz -execdir rm \{\} \; \) \
|
\( -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 {} \; \) \
|
||||||
\)
|
\)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user