1d67bc6abb
This wasn't done with a repository copy because there was no history of any consequence. Flames to me.
19 lines
407 B
Bash
Executable File
19 lines
407 B
Bash
Executable File
#!/bin/sh -
|
|
#
|
|
# $Id: 310.locate,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
|
|
#
|
|
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
|