mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
e9ebca08d7
home directory. PR: 10700 Submitted by: Sergey Korsak <skif@1plus1.net>
18 lines
375 B
Bash
Executable File
18 lines
375 B
Bash
Executable File
#!/bin/sh -
|
|
#
|
|
# $Id: 310.locate,v 1.2 1997/11/01 15:00:40 wosch 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}
|
|
|
|
cd /
|
|
echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody
|
|
chmod 444 ${locdb}
|
|
fi
|