]> mj.ucw.cz Git - eval.git/blob - bin/mo-install
Improved formatting of login tickets.
[eval.git] / bin / mo-install
1 #!/bin/bash
2
3 [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; }
4 set -e
5 . config
6 make
7
8 H=`pwd`
9
10 # The eval directory
11 cd $MO_ROOT
12 rm -rf eval
13 mkdir eval
14 chgrp $EVAL_GROUP eval
15 chmod 755 eval
16 cd eval
17
18 # mo-eval home
19 bin/mo-create-eval
20
21 # testusers
22 ( cd eval && bin/mo-create-testusers )
23
24 # mo-submit home
25 if [ -n "$REMOTE_SUBMIT" ] ; then
26         mkdir submit
27         chmod 750 submit
28         if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh submit/ ; fi
29         ( cd $H && bin/mo-create-submit )
30 fi
31
32 # create public
33 cd $MO_ROOT
34 echo "Creating public"
35 rm -rf public
36 mkdir public
37
38 # populate public
39 ( cd eval/eval ; bin/mo-create-public )