a671e01be7
Please note: I'm not activating this until I successfully get the changes back into my local CVS repository to do one final check. Early adopters are welcome to send comments.
19 lines
356 B
Bash
Executable File
19 lines
356 B
Bash
Executable File
#!/bin/sh -
|
|
#
|
|
# $Id$
|
|
#
|
|
locdb=/var/db/locate.database
|
|
|
|
if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then
|
|
|
|
echo ""
|
|
echo "Rebuilding locate database:"
|
|
|
|
touch ${locdb}; chown nobody ${locdb}; chmod 644 ${locdb}
|
|
|
|
echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody 2>&1 |\
|
|
fgrep -v 'Permission denied'
|
|
|
|
chmod 444 ${locdb}
|
|
fi
|