X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=mop%2Fadmin%2Fmo-create-eval.sh;h=c32c97648a3da1d71934f48dbc604f80d60d0036;hb=eec2ea4fd9eb7017f864ad20852a41885cc864d7;hp=707053cbf3a19ea447892e9092e8c4f85020f319;hpb=fc833e30d9b1315ffdeb780d5257e8e1bdafad43;p=moe.git diff --git a/mop/admin/mo-create-eval.sh b/mop/admin/mo-create-eval.sh index 707053c..c32c976 100755 --- a/mop/admin/mo-create-eval.sh +++ b/mop/admin/mo-create-eval.sh @@ -1,8 +1,9 @@ #!/bin/bash +# Create home directory of the user who runs the evaluator. -[ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; } +[ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; } set -e -. config +. cf/mop H=`pwd` cd $MO_ROOT/eval @@ -11,8 +12,7 @@ echo "Creating $EVAL_USER" rm -rf eval mkdir eval cd eval -cp -a $H/* . -chmod +x bin/* +cp -aL $H/* . if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh . ; fi cd .. chown -R $EVAL_USER.$EVAL_GROUP eval