]> andersk Git - moira.git/blobdiff - gen/install_dirs
set mode on course lockers to 775
[moira.git] / gen / install_dirs
index 2eb0d292e7e7d3658d8fea3318483264b0d6d43b..d6e7f05e8bbbf88964f4c0ba3c675772cbd1743a 100644 (file)
@@ -10,20 +10,7 @@ set path=(/etc /bin /usr/bin /usr/etc)
 # Find out what device we're working on
 set dev = $1
 
-set TMPSTOR = /tmp/tmpstor     # Temporary area for user . files
-set USERTAR = /tmp/proto.tar   # Tarfile for user . files
-
-# Give ourselves a fresh work area
-rm -rf $USERTAR
-rm -rf $TMPSTOR
-mkdir $TMPSTOR
-if ($status) exit $SMS_PROTO
-
-# Make a tarfile containing the user prototype files for future use.
-(cd /usr/prototype_user;tar cf - .) | (cd $TMPSTOR; tar xpf -)
-(cd $TMPSTOR; tar cf $USERTAR .)
-if ($status) exit $SMS_PROTO
-rm -rf $TMPSTOR
+set USERTAR = /tmp/nfs.dir/proto.tar   # Tarfile for user . files
 
 # So that the new directories get the right protections.
 umask 66
@@ -64,8 +51,8 @@ while (1)
       case HOMEDIR:
          
          # ***** Remove this when /etc/encorce_quota becomes obsolete!
-         # Give this filesystem a 600K quota
-         setquota $dev $uid 600
+         # Give this filesystem a 1200K quota
+         setquota $dev $uid 1200
          # *****
 
          # Give user prototype files
@@ -73,6 +60,9 @@ while (1)
          (cd $tmpdir; sms_untar $uid < $USERTAR)
          if ($status) set WARN
          breaksw      
+      case COURSE:
+        /bin/chmod 775 $tmpdir
+        breaksw
       default:
          breaksw
    endsw
@@ -81,8 +71,6 @@ while (1)
    ### Soft failure when ready
 end
 
-# Cleanup
-rm -f $USERTAR
 exit 0
 
 #
This page took 0.034179 seconds and 4 git commands to generate.