From: Martin Mares Date: Sun, 1 Jul 2007 21:10:33 +0000 (+0200) Subject: Split off mo-create-eval from mo-install. X-Git-Tag: python-dummy-working~321 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4dd80a8679220007344faf7984fb6fc949f43ab4;p=moe.git Split off mo-create-eval from mo-install. --- diff --git a/bin/mo-create-eval b/bin/mo-create-eval new file mode 100755 index 0000000..9cc5ca0 --- /dev/null +++ b/bin/mo-create-eval @@ -0,0 +1,20 @@ +#!/bin/bash + +[ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; } +set -e +. config +make + +H=`pwd` +cd $MO_ROOT/eval + +echo "Creating $EVAL_USER" +rm -rf eval +mkdir eval +cd eval +cp -a $H/* . +chmod +x bin/* +if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh . ; fi +cd .. +chown -R $EVAL_USER.$EVAL_GROUP eval +chmod 750 eval diff --git a/bin/mo-install b/bin/mo-install index 8d7556c..88a0fc6 100755 --- a/bin/mo-install +++ b/bin/mo-install @@ -16,15 +16,7 @@ chmod 755 eval cd eval # mo-eval home -echo "Creating $EVAL_USER" -mkdir eval -cd eval -cp -a $H/* . -chmod +x bin/* -if [ -d ~/.ssh ] ; then echo "Copying SSH configuration from ~/.ssh" ; cp -a ~/.ssh . ; fi -cd .. -chown -R $EVAL_USER.$EVAL_GROUP eval -chmod 750 eval +bin/mo-create-eval # testusers ( cd eval && bin/mo-create-testusers )