home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / cron.weekly / tor < prev   
Encoding:
Text File  |  2012-11-20  |  322 b   |  17 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4. set -u
  5.  
  6. DEFAULTSFILE=/etc/default/tor
  7.  
  8. if [ -f $DEFAULTSFILE ] ; then
  9.     . $DEFAULTSFILE
  10. fi
  11.  
  12. if [ "${CLEANUP_OLD_COREFILES:-}" = "y" ] ; then
  13.     if [ -d /var/lib/tor ] ; then
  14.         find /var/lib/tor -mindepth 1 -maxdepth 1 -type f -mtime +21 -user debian-tor -regex '.*/core\(\.[0-9]+\)?' -exec rm '{}' +
  15.     fi
  16. fi
  17.