]> mj.ucw.cz Git - moe.git/blobdiff - bin/mo-create-contestants
Reworked the installation machinery.
[moe.git] / bin / mo-create-contestants
index 5a101b9a806ef85f480958bc08c4e5d1791dbae9..f2dd8d27357c70612c7caa840f02450231c48779 100755 (executable)
@@ -16,6 +16,16 @@ for a in `cd $H && bin/mo-get-users` ; do
        chown root.$a $a
        chmod 750 $a
        cp -a `find $H/template -type f -name ".*"` $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