add PATH variable, use it
This commit is contained in:
parent
ea4da3a878
commit
f2cebac5c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19412
@ -8,9 +8,10 @@
|
||||
#
|
||||
# Comment out the LOG=yes line to disable logging.
|
||||
#
|
||||
# $Id: yppwupdate,v 1.4 1996/06/03 16:17:21 wpaul Exp $
|
||||
# $Id: yppwupdate,v 1.3 1996/06/05 06:13:09 wpaul Exp $
|
||||
#
|
||||
|
||||
PATH=/bin:/usr/bin; export PATH
|
||||
LOG=yes
|
||||
LOGFILE=/var/yp/ypupdate.log
|
||||
|
||||
@ -18,16 +19,16 @@ umask 077
|
||||
|
||||
if [ ! -f $LOGFILE ];
|
||||
then
|
||||
/usr/bin/touch $LOGFILE
|
||||
touch $LOGFILE
|
||||
echo "# Edit /usr/libexec/yppwupdate to disable" >> $LOGFILE
|
||||
echo "# logging to this file from yppasswdd." >> $LOGFILE
|
||||
echo -n "# Log started on: " >> $LOGFILE
|
||||
/bin/date >> $LOGFILE
|
||||
date >> $LOGFILE
|
||||
fi
|
||||
|
||||
if [ ! $LOG ];
|
||||
then
|
||||
cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 2>&1
|
||||
cd /var/yp && make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 2>&1
|
||||
else
|
||||
cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 >> $LOGFILE 2>&1
|
||||
cd /var/yp && make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 >> $LOGFILE 2>&1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user