Blame view

doc/cron/jobs/clean_old_thumbs.sh 163 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
  #!/usr/bin/env bash
  thumb_dir="../web/uploads/thumbs"
  if [ -d $thumb_dir ]
  then
      echo "run cleaner"
      find $thumb_dir -type f -mtime +30 -exec rm -rf {} \;
  fi