aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic/weekly/310.locate
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>1999-06-21 18:36:18 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>1999-06-21 18:36:18 +0000
commite9ebca08d7df55b934bcfb9304119e789ef956a2 (patch)
tree057aca4e136b585f0b2890bc7455a31716b2b46e /etc/periodic/weekly/310.locate
parentf8414852781bd4cb139c42d9ecbee22bd0d5fdec (diff)
downloadsrc-e9ebca08d7df55b934bcfb9304119e789ef956a2.tar.gz
src-e9ebca08d7df55b934bcfb9304119e789ef956a2.zip
Update the locate database even if user nobody can't stat root's
home directory. PR: 10700 Submitted by: Sergey Korsak <skif@1plus1.net>
Notes
Notes: svn path=/head/; revision=48084
Diffstat (limited to 'etc/periodic/weekly/310.locate')
-rwxr-xr-xetc/periodic/weekly/310.locate3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/periodic/weekly/310.locate b/etc/periodic/weekly/310.locate
index 39455b1e5ad1..f55d2ed9280e 100755
--- a/etc/periodic/weekly/310.locate
+++ b/etc/periodic/weekly/310.locate
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: 310.locate,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
+# $Id: 310.locate,v 1.2 1997/11/01 15:00:40 wosch Exp $
#
locdb=/var/db/locate.database
@@ -11,6 +11,7 @@ if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then
touch ${locdb}; chown nobody ${locdb}; chmod 644 ${locdb}
+ cd /
echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody
chmod 444 ${locdb}
fi