You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
338 B
Plaintext
11 lines
338 B
Plaintext
5 years ago
|
#!/bin/sh
|
||
|
# Cleanup lighttpd compress cache
|
||
|
|
||
|
cache=/var/cache/lighttpd
|
||
|
if test -d "$cache/compress"; then
|
||
|
su -s /bin/sh -c "find $cache/compress -type f -atime +30 -print0 | xargs -0 -r rm" www-data
|
||
|
fi
|
||
|
if test -d "$cache/uploads"; then
|
||
|
su -s /bin/sh -c "find $cache/uploads -type f -atime +1 -print0 | xargs -0 -r rm" www-data
|
||
|
fi
|