config root man

Current Path : /compat/linux/proc/68247/cwd/usr/libexec/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/cwd/usr/libexec/yppwupdate

#!/bin/sh
#
# This script is invoked by rpc.yppasswdd to update the password
# maps after the master password file has been modified. It expects
# to be passed two arguments: the name of the master.passwd template
# file that was modified by the server, and the name of the domain to
# update. These are passed to /var/yp/Makefile.
#
# Comment out the LOG=yes line to disable logging.
#
# $FreeBSD: release/9.1.0/usr.sbin/rpc.yppasswdd/yppwupdate 50479 1999-08-28 01:35:59Z peter $
#

PATH=/bin:/usr/bin; export PATH
LOG=yes
LOGFILE=/var/yp/ypupdate.log

umask 077

if [ ! -f $LOGFILE ];
then
	touch $LOGFILE
	echo "# Edit /usr/libexec/yppwupdate to disable" >> $LOGFILE
	echo "# logging to this file from yppasswdd." >> $LOGFILE
	echo -n "# Log started on: " >> $LOGFILE
	date >> $LOGFILE
fi

if [ ! $LOG ];
then
	cd /var/yp && make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 2>&1
else
	cd /var/yp && make MASTER_PASSWD=$1 UPDATE_DOMAIN=$2 $3 >> $LOGFILE 2>&1
fi

Man Man