#!/bin/sh # # This script is invoked by yppasswdd to update the password # maps after the master password file has been modified. # Comment out the LOG=yes line to disable logging. # LOG=yes LOGFILE=/var/yp/ypupdate.log umask 077 if [ ! -f $LOGFILE ]; then /usr/bin/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 fi if [ ! $LOG ]; then cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 else cd /var/yp; /usr/bin/make MASTER_PASSWD=$1 >> $LOGFILE fi