1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
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}
|
|
|
|
|
1999-06-21 18:36:18 +00:00
|
|
|
cd /
|
1997-11-01 15:00:40 +00:00
|
|
|
echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody
|
1997-08-16 17:04:02 +00:00
|
|
|
chmod 444 ${locdb}
|
|
|
|
fi
|