Merge "Remove unused log_archive_maintenance.sh script"
This commit is contained in:
commit
511a4cf86e
@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
sleep $((RANDOM%600)) && \
|
||||
flock -n /var/run/gziplogs.lock \
|
||||
find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \
|
||||
-not -wholename /srv/static/logs/help/\* \( \
|
||||
\( -type f -mmin +10 -not -name \*\[.-\]gz -not -name \*\[._-\]\[zZ\] \
|
||||
\( -name \*.txt -or -name \*.html -or -name tmp\* \) \
|
||||
-exec gzip -f \{\} \; \) \
|
||||
-o \( -type f -mtime +90 -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 -execdir rm \{\} \; \) \
|
||||
-o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)
|
Loading…
x
Reference in New Issue
Block a user