home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / etc / cron.d / lib / update-locatedb
Encoding:
Text File  |  1999-08-10  |  327 b   |  16 lines

  1. #! /bin/bash
  2. # Make/update the file name database
  3.  
  4. . /etc/cron.d/lib/functions
  5.  
  6. TMPDIR=$(cronloop_mk_TMPDIR)
  7. declare -rx TMPDIR
  8.  
  9. # remove TMPDIR on exit
  10. trap cronloop_rm_TMPDIR EXIT
  11.  
  12. OMIT="/tmp /proc /mnt /var/tmp /var/spool /dev /net /auto /amd /NetWare"
  13.  
  14. /usr/bin/updatedb --prunepaths="$OMIT" --netuser=nobody 2> /dev/null
  15.  
  16.