]> andersk Git - moira.git/blobdiff - gen/nfs.sh
sms -> moira
[moira.git] / gen / nfs.sh
index 37a949be8245ed2cd50e9ff8c4c359307e9b388b..f9f6039a8fba79e83270f8b95acd57a13871aa8a 100644 (file)
@@ -5,10 +5,10 @@
 echo '$Header$'
 
 # The following exit codes are defined and MUST BE CONSISTENT with the
-# SMS error codes the library uses:
-set SMS_NOCRED = 47836470
-set SMS_MKCRED = 47836474
-set SMS_TARERR = 47836476
+# MR error codes the library uses:
+set MR_NOCRED = 47836470
+set MR_MKCRED = 47836474
+set MR_TARERR = 47836476
 
 set path=(/etc /bin /usr/bin /usr/etc)
 set nonomatch
@@ -20,7 +20,7 @@ set SRC_DIR=/tmp/nfs.dir
 
 # Alert if the tarfile does not exist
 if (! -r $TARFILE) then
-   exit $SMS_TARERR
+   exit $MR_TARERR
 endif
 
 # Create a fresh source directory
@@ -28,7 +28,7 @@ rm -rf $SRC_DIR
 mkdir $SRC_DIR
 chmod 755 $SRC_DIR
 
-# Note that since SMS is going to be exported, assuming .MIT.EDU is 
+# Note that since MR is going to be exported, assuming .MIT.EDU is 
 # incorrect.  For now however, it is probably not worth the effort
 # to canonicalize the hostname, especially with the upcoming update
 # protocol redesign
@@ -39,7 +39,7 @@ cd $SRC_DIR
 # Just extract everything since some of what we need exists as
 # hardlinks and tar doesn't deal well with extracting them in isolation.
 tar xf $TARFILE
-if ($status) exit $SMS_TARERR
+if ($status) exit $MR_TARERR
 
 foreach type (dirs quotas)
    echo "Installing ${type}:"
@@ -59,10 +59,10 @@ end
 # build new credentials files.
 rm -f /usr/etc/credentials.new
 cp ${uchost}.cred /usr/etc/credentials.new
-if ($status) exit $SMS_NOCRED
+if ($status) exit $MR_NOCRED
 
 /usr/etc/mkcred /usr/etc/credentials.new
-if ($status) exit $SMS_MKCRED
+if ($status) exit $MR_MKCRED
 
 # Try to install the files
 foreach e ( "" .dir .pag)
@@ -71,7 +71,7 @@ end
 
 # If any of them didn't get installed, fail
 foreach e ( "" .dir .pag)
-   if (! -e /usr/etc/credentials$e) exit $SMS_NOCRED
+   if (! -e /usr/etc/credentials$e) exit $MR_NOCRED
 end
 
 
This page took 0.034913 seconds and 4 git commands to generate.