X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/74186cf3db786b472e7eda350a290c6ba620a4e1..954559400f01001e89fc58ec03d8d5e85066b74b:/gen/install_dirs diff --git a/gen/install_dirs b/gen/install_dirs index d6e7f05e..72ee5894 100644 --- a/gen/install_dirs +++ b/gen/install_dirs @@ -1,9 +1,9 @@ #!/bin/csh -f -# This script installs new directories on NFS servers. +# This script installs new directories on NFS servers. # The following exit codes are defined and MUST BE CONSISTENT with the -# SMS error codes the library uses: -set SMS_PROTO = 47836477 +# error codes the library uses: +set MR_PROTO = 47836477 set path=(/etc /bin /usr/bin /usr/etc) @@ -32,10 +32,10 @@ while (1) set tmpdir = $dir:h/_$dir:t # Don't clobber this directory if it exists. if (-d $tmpdir) then - continue + break; else mkdir $tmpdir - # At some point it may be wise to check the status here and + # At some point it may be wise to check the status here and # return a soft failure, but the current protocol doesn't # support this break @@ -44,22 +44,22 @@ while (1) if (! -d $tmpdir) continue chown $uid.$gid $tmpdir - # At some point, we may wish to add a more elegant way of handling - # locker types. The current arrangement allows for easy adding of + # At some point, we may wish to add a more elegant way of handling + # locker types. The current arrangement allows for easy adding of # default actions here. switch ($type) case HOMEDIR: - + # ***** Remove this when /etc/encorce_quota becomes obsolete! # Give this filesystem a 1200K quota setquota $dev $uid 1200 # ***** # Give user prototype files - # sms_untar is a setuid argv[1] tar xfp - - (cd $tmpdir; sms_untar $uid < $USERTAR) + (cd $tmpdir; tar xf $USERTAR) if ($status) set WARN - breaksw + chown $uid.$gid $tmpdir $tmpdir/.??* $tmpdir/* + breaksw case COURSE: /bin/chmod 775 $tmpdir breaksw