Delete docs-draft files after 30 days.
They can be recreated if needed so let's just keep them around long enough to be useful in code reviews. Change-Id: I2cac9a75190b1db23df67568b1973b25c4179590 Reviewed-on: https://review.openstack.org/32039 Reviewed-by: Anne Gentle <anne@openstack.org> Reviewed-by: Khai Do <zaro0508@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
68d6cc7d07
commit
64ca895bd0
@ -9,3 +9,8 @@ find /srv/static/logs/ -depth \
|
|||||||
-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 -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 {} \; \) \
|
||||||
|
\)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user