From 4dd80a8679220007344faf7984fb6fc949f43ab4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 1 Jul 2007 23:10:33 +0200 Subject: [PATCH] Split off mo-create-eval from mo-install. --- bin/mo-create-eval | 20 ++++++++++++++++++++ bin/mo-install | 10 +--------- 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100755 bin/mo-create-eval 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 ) -- 2.39.2