From ed5365f1bc90c57b7b7d4e35e642918be83026a8 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 4 Aug 1999 17:55:17 +0000 Subject: propagate TMPDIR into locate.updatedb --- etc/weekly | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/weekly') diff --git a/etc/weekly b/etc/weekly index d3710cf809d..250061cdb81 100644 --- a/etc/weekly +++ b/etc/weekly @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: weekly,v 1.8 1998/02/02 23:08:56 millert Exp $ +# $OpenBSD: weekly,v 1.9 1999/08/04 17:55:16 mickey Exp $ # PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec @@ -24,7 +24,8 @@ if [ -f /var/db/locate.database ]; then if [ $? -eq 0 ]; then trap 'rm -f $TMP' 0 1 15 echo "Rebuilding locate database:" - echo "/usr/libexec/locate.updatedb --fcodes=-" | \ + UPDATEDB="/usr/libexec/locate.updatedb" + echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/tmp}" | \ nice -5 su -m nobody 2>/dev/null 1>$TMP if [ -s "$TMP" ]; then chmod 444 $TMP -- cgit v1.2.3