summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2003-01-14 08:12:42 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2003-01-14 08:12:42 +0000
commit1c90014f1d62e19e7b78788b617cb8f37635170b (patch)
tree30975b6809d75e2e637b858e2357a78ef56f3c85
parent264549e6231d7b83f43492f2afb8b3b97fe417d8 (diff)
use /var/tmp as default temporary directory when building locate database. ok millert@
-rw-r--r--etc/weekly4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/weekly b/etc/weekly
index bcc6ede3f92..5ac97d3fa2f 100644
--- a/etc/weekly
+++ b/etc/weekly
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: weekly,v 1.11 2001/07/27 07:24:40 fgsch Exp $
+# $OpenBSD: weekly,v 1.12 2003/01/14 08:12:41 jakob Exp $
#
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
@@ -19,7 +19,7 @@ if [ -f /var/db/locate.database ]; then
trap 'rm -f $TMP' 0 1 15
echo "Rebuilding locate database:"
UPDATEDB="/usr/libexec/locate.updatedb"
- echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/tmp}" | \
+ echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp}" | \
nice -5 su -m nobody 2>/dev/null 1>$TMP
if [ -s "$TMP" ]; then
chmod 444 $TMP