]> mj.ucw.cz Git - eval.git/blobdiff - bin/mo-install
Remember length of submitted files.
[eval.git] / bin / mo-install
index 7d540078f12e5d3a0c2f10db6db828f0308f9848..f580d69e8962c1689b84056e57b22c7124d6cd92 100755 (executable)
@@ -18,7 +18,6 @@ echo "Creating $EVAL_USER"
 mkdir $EVAL_USER
 cd $EVAL_USER
 cp -a $H/* .
-mv bin/profile .profile
 chmod +x bin/*
 cd ..
 chown -R $EVAL_USER.$EVAL_GROUP $EVAL_USER
@@ -26,16 +25,11 @@ chmod 700 $EVAL_USER
 
 ( cd $EVAL_USER ; bin/mo-create-testusers )
 
-# common
+# create public
 cd $MO_ROOT
 echo "Creating public"
 rm -rf public
 mkdir public
-cd public
-cp -a $H/bin $H/config .
-mkdir problems
-cp -a $H/public/* bin/
-chmod +x bin/*
-cd ..
-chown -R $EVAL_USER.$EVAL_GROUP public
-chmod 755 public
+
+# populate public
+( cd eval/$EVAL_USER ; bin/mo-create-public )