#!/bin/csh -f
# This script performs nfs updates on servers.
#
-# $Source$
-echo '$Header$'
+# $Header$
# The following exit codes are defined and MUST BE CONSISTENT with the
# MR error codes the library uses:
set MR_MKCRED = 47836474
set MR_TARERR = 47836476
-set path=(/etc /bin /usr/bin /usr/etc)
+set path=(/etc /bin /usr/bin /usr/etc /usr/athena/etc)
set nonomatch
# The file containg the information for the update
# incorrect. For now however, it is probably not worth the effort
# to canonicalize the hostname, especially with the upcoming update
# protocol redesign
-set uchost=`/bin/hostname | tr a-z A-Z`.MIT.EDU
+set uchost=`hostname | tr a-z A-Z`.MIT.EDU
cd $SRC_DIR
if ($status) exit $status
if ($type == quotas) ./zero_quotas $dev < $i
if ($status) exit $status
+ # save the files used here for later debugging
+ mv $i /tmp
endif
end
end
cp ${uchost}.cred /usr/etc/credentials.new
if ($status) exit $MR_NOCRED
-/usr/etc/mkcred /usr/etc/credentials.new
+mkcred /usr/etc/credentials.new
if ($status) exit $MR_MKCRED
# Try to install the files