]> mj.ucw.cz Git - eval.git/blobdiff - bin/mo-install
Implemented general mechanism for overriding variables for specific
[eval.git] / bin / mo-install
index 8d7556c016678e80332946f2746a0b4e2a671568..2c0e8bd6360bd6ba96cf9c1971ad25a209370b6d 100755 (executable)
@@ -16,15 +16,7 @@ chmod 755 eval
 cd eval
 
 # mo-eval home
-echo "Creating $EVAL_USER"
-mkdir eval
-cd eval
-cp -a $H/* .
-chmod +x bin/*
-if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh . ; fi
-cd ..
-chown -R $EVAL_USER.$EVAL_GROUP eval
-chmod 750 eval
+bin/mo-create-eval
 
 # testusers
 ( cd eval && bin/mo-create-testusers )
@@ -32,6 +24,7 @@ chmod 750 eval
 # mo-submit home
 if [ -n "$REMOTE_SUBMIT" ] ; then
        mkdir submit
+       chmod 750 submit
        if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh submit/ ; fi
        ( cd $H && bin/mo-create-submit )
 fi