Better update

A slighly better way to update your file name database than just issue a updatedb :

  1. #!/bin/bash
  2. # Better than updatedb
  3. #
  4. echo -n "Updating locatedb..."
  5. updatedb --prunepaths="/tmp /proc /var/tmp"
  6. date > /var/log/updatedb.log
  7. chmod +r /var/log/updatedb.log
  8. echo " done."