File: lighttpd.cron.daily

package info (click to toggle)
lighttpd 1.4.69-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,328 kB
  • sloc: ansic: 92,571; sh: 5,169; perl: 2,616; makefile: 738; yacc: 729
file content (10 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Cleanup lighttpd compress cache
cd /
cache=/var/cache/lighttpd
if test -d "$cache/compress"; then
    runuser -u www-data -- /bin/sh -c "find $cache/compress -type f -atime +30 -print0 | xargs -0 -r rm"
fi
if test -d "$cache/uploads"; then
    runuser -u www-data -- /bin/sh -c "find $cache/uploads -type f -atime +1 -print0 | xargs -0 -r rm"
fi