Don't remove lost+found from static.o.o.
Change-Id: I566a38da017447d13014739ba37ba42bca21d09c
This commit is contained in:
parent
41b53aae6c
commit
b1b421fa9d
@ -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 {} \; \) \
|
||||
\)
|
||||
|
Loading…
x
Reference in New Issue
Block a user