]> mj.ucw.cz Git - moe.git/blob - mop/admin/mo-create-eval.sh
mop: mo-score has gained a --table option for nice textual tables
[moe.git] / mop / admin / mo-create-eval.sh
1 #!/bin/bash
2 # Create home directory of the user who runs the evaluator.
3
4 [ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; }
5 set -e
6 . cf/mop
7
8 H=`pwd`
9 cd $MO_ROOT/eval
10
11 echo "Creating $EVAL_USER"
12 rm -rf eval
13 mkdir eval
14 cd eval
15 cp -aL $H/* .
16 if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh . ; fi
17 cd ..
18 chown -R $EVAL_USER.$EVAL_GROUP eval
19 chmod 750 eval