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:
parent
6fb2f9185a
commit
f9389a0e81
@ -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}
|
||||
|
@ -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"
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user