X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmo-create-contestants;h=3cc44454b8cc8d937756d948c29c336d8c94a827;hb=04cca68f101b8071504da6b304b9ffd83bc2d238;hp=5a101b9a806ef85f480958bc08c4e5d1791dbae9;hpb=3ee84a61340017dccf73f53194cd7ec4c7ec838b;p=eval.git diff --git a/bin/mo-create-contestants b/bin/mo-create-contestants index 5a101b9..3cc4445 100755 --- a/bin/mo-create-contestants +++ b/bin/mo-create-contestants @@ -15,7 +15,17 @@ for a in `cd $H && bin/mo-get-users` ; do mkdir $a $a/$a chown root.$a $a chmod 750 $a - cp -a `find $H/template -type f -name ".*"` $a/$a/ + cp -a `find $H/template -mindepth 1 -maxdepth 1` $a/$a/ + + if [ -n "$REMOTE_SUBMIT" ] ; then + M=$a/$a/.mo + mkdir $M + cp $H/certs/$a-cert.pem $M/cert.pem + cp $H/certs/$a-key.pem $M/key.pem + chmod 600 $M/key.pem + cp $H/certs/ca-cert.pem $M/ + fi + chown $a.$a $a/$a -R chmod 700 $a/$a done