1#!/bin/sh 2# 3# This script is invoked by rpc.yppasswdd to update the password 4# maps after the master password file has been modified. It expects 5# to be passed two arguments: the name of the master.passwd template 6# file that was modified by the server, and the name of the domain to 7# update. These are passed to /var/yp/Makefile. 8# 9# Comment out the LOG=yes line to disable logging. 10#
| 1#!/bin/sh 2# 3# This script is invoked by rpc.yppasswdd to update the password 4# maps after the master password file has been modified. It expects 5# to be passed two arguments: the name of the master.passwd template 6# file that was modified by the server, and the name of the domain to 7# update. These are passed to /var/yp/Makefile. 8# 9# Comment out the LOG=yes line to disable logging. 10#
|
11# $Id: yppwupdate,v 1.1.1.1 1996/02/12 15:09:01 wpaul Exp $
| 11# $Id: yppwupdate,v 1.4 1996/06/03 16:17:21 wpaul Exp $
|
12# 13 14LOG=yes 15LOGFILE=/var/yp/ypupdate.log 16 17umask 077 18 19if [ ! -f $LOGFILE ]; 20then 21 /usr/bin/touch $LOGFILE 22 echo "# Edit /usr/libexec/yppwupdate to disable" >> $LOGFILE 23 echo "# logging to this file from yppasswdd." >> $LOGFILE 24 echo -n "# Log started on: " >> $LOGFILE 25 /bin/date >> $LOGFILE 26fi 27 28if [ ! $LOG ]; 29then
| 12# 13 14LOG=yes 15LOGFILE=/var/yp/ypupdate.log 16 17umask 077 18 19if [ ! -f $LOGFILE ]; 20then 21 /usr/bin/touch $LOGFILE 22 echo "# Edit /usr/libexec/yppwupdate to disable" >> $LOGFILE 23 echo "# logging to this file from yppasswdd." >> $LOGFILE 24 echo -n "# Log started on: " >> $LOGFILE 25 /bin/date >> $LOGFILE 26fi 27 28if [ ! $LOG ]; 29then
|
30 cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 2>&1
| 30 cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 2>&1
|
31else
| 31else
|
32 cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 >> $LOGFILE 2>&1
| 32 cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 >> $LOGFILE 2>&1
|
33fi
| 33fi
|