From: Martin Mares Date: Wed, 18 Mar 2009 13:17:28 +0000 (+0100) Subject: Updated MO-P admin scripts to new directory layout. X-Git-Tag: python-dummy-working~118 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7946316d0ce9f19d3e8093b3904fa9aeba985b10;p=eval.git Updated MO-P admin scripts to new directory layout. --- diff --git a/mop/admin/mo-create-eval.sh b/mop/admin/mo-create-eval.sh index 0e236f0..c32c976 100755 --- a/mop/admin/mo-create-eval.sh +++ b/mop/admin/mo-create-eval.sh @@ -12,8 +12,7 @@ echo "Creating $EVAL_USER" rm -rf eval mkdir eval cd eval -cp -a $H/* . -chmod +x bin/* +cp -aL $H/* . if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh . ; fi cd .. chown -R $EVAL_USER.$EVAL_GROUP eval diff --git a/mop/admin/mo-create-submit.sh b/mop/admin/mo-create-submit.sh index 30056f0..d2395da 100755 --- a/mop/admin/mo-create-submit.sh +++ b/mop/admin/mo-create-submit.sh @@ -14,18 +14,16 @@ mkdir -p certs cp $H/certs/server* certs/ cp $H/certs/ca-cert.pem certs/ -rm -rf submit -mkdir -p submit -cp $H/submit/{submitd,config,show-submits} submit/ +rm -rf bin cf +mkdir bin cf +cp $H/bin/{submitd,show-submits} bin/ +cp $H/cf/{submitd,libucw} cf/ mkdir -p solutions for a in `cd $H && bin/mo-get-users` ; do mkdir -p solutions/$a done -rm -rf lib -cp -a $H/submit/lib lib - rm -rf tmp mkdir -p tmp