]> mj.ucw.cz Git - eval.git/blob - mop/mo-create-eval
mop/print-score is gone.
[eval.git] / mop / mo-create-eval
1 #!/bin/bash
2
3 [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; }
4 set -e
5 . config
6
7 H=`pwd`
8 cd $MO_ROOT/eval
9
10 echo "Creating $EVAL_USER"
11 rm -rf eval
12 mkdir eval
13 cd eval
14 cp -a $H/* .
15 chmod +x bin/*
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