2 # Create home directories of all contestants.
4 [ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; }
9 if [ ! -d template ] ; then
10 if [ -d ../mop/template ] ; then
11 echo "Symlinking templates from ../mop/template"
12 ln -s ../mop/template .
14 echo "Templates not found!"
24 for a in `cd $H && bin/mo-get-users` ; do
29 cp -a `find $H/template/ -mindepth 1 -maxdepth 1` $a/$a/
31 if [ -n "$REMOTE_SUBMIT" ] ; then
34 cp $H/certs/$a-cert.pem $M/cert.pem
35 cp $H/certs/$a-key.pem $M/key.pem
37 cp $H/certs/ca-cert.pem $M/