Change default temporary directory (TMPDIR) from /tmp to /var/tmp.

Mosts users seems to have a larger /var/tmp partition
than /tmp - IMHO silly but who cares?
This commit is contained in:
Wolfram Schneider 1998-03-08 16:09:31 +00:00
parent a294b5d81b
commit 8b91ab6a61
4 changed files with 11 additions and 11 deletions

View File

@ -30,7 +30,7 @@
#
# Sequence of databases is important.
#
# $Id: concatdb.sh,v 1.6 1997/12/13 18:18:07 sef Exp $
# $Id: concatdb.sh,v 1.7 1998/03/08 15:28:32 wosch Exp $
# The directory containing locate subprograms
: ${LIBEXECDIR:=/usr/libexec}; export LIBEXECDIR
@ -39,8 +39,8 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
umask 077 # protect temp files
: ${TMPDIR:=/tmp}; export TMPDIR;
test -d "$TMPDIR" || TMPDIR=/tmp
: ${TMPDIR:=/var/tmp}; export TMPDIR;
test -d "$TMPDIR" || TMPDIR=/var/tmp
# utilities to built locate database
: ${bigram:=locate.bigram}

View File

@ -1,13 +1,13 @@
#
# /etc/locate.rc - command script for updatedb(8)
#
# $Id: locate.rc,v 1.4 1997/02/22 19:55:48 peter Exp $
# $Id: locate.rc,v 1.5 1998/01/01 02:34:14 alex Exp $
#
# All commented values are the defaults
#
# temp directory
#TMPDIR="/tmp"
#TMPDIR="/var/tmp"
# the actual database
#FCODES="/var/db/locate.database"

View File

@ -28,7 +28,7 @@
#
# usage: mklocatedb [-presort] < filelist > database
#
# $Id: mklocatedb.sh,v 1.5 1997/12/13 18:18:10 sef Exp $
# $Id: mklocatedb.sh,v 1.6 1998/03/08 15:28:35 wosch Exp $
# The directory containing locate subprograms
@ -38,8 +38,8 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
umask 077 # protect temp files
: ${TMPDIR:=/tmp}; export TMPDIR
test -d "$TMPDIR" || TMPDIR=/tmp
: ${TMPDIR:=/var/tmp}; export TMPDIR
test -d "$TMPDIR" || TMPDIR=/var/tmp
# utilities to built locate database
: ${bigram:=locate.bigram}

View File

@ -26,7 +26,7 @@
#
# updatedb - update locate database for local mounted filesystems
#
# $Id: updatedb.sh,v 1.8 1997/12/13 18:18:12 sef Exp $
# $Id: updatedb.sh,v 1.9 1998/03/08 15:28:37 wosch Exp $
LOCATE_CONFIG="/etc/locate.rc"
if [ -f "$LOCATE_CONFIG" -a -r "$LOCATE_CONFIG" ]; then
@ -35,8 +35,8 @@ fi
# The directory containing locate subprograms
: ${LIBEXECDIR:=/usr/libexec}; export LIBEXECDIR
: ${TMPDIR:=/tmp}; export TMPDIR
test -d "$TMPDIR" || TMPDIR=/tmp
: ${TMPDIR:=/var/tmp}; export TMPDIR
test -d "$TMPDIR" || TMPDIR=/var/tmp
PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH