From e24e54a23e4cdee7bfe8d480c990697d39932cd0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 3 Jun 2001 18:29:33 +0000 Subject: [PATCH] Split installation process. --- bin/mo-create-testusers | 21 +++++++++++++++++++++ bin/mo-install | 20 +++++--------------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100755 bin/mo-create-testusers diff --git a/bin/mo-create-testusers b/bin/mo-create-testusers new file mode 100755 index 0000000..1652298 --- /dev/null +++ b/bin/mo-create-testusers @@ -0,0 +1,21 @@ +#!/bin/bash + +[ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; } +set -e +. config +make + +H=`pwd` +cd $MO_ROOT + +# mo-test home +for u in $TEST_USERS ; do + echo "Creating $u" + rm -rf ./$u + mkdir $u + chown $u.$EVAL_GROUP $u + chmod 770 $u + cp $EVAL_USER/bin/box $EVAL_USER/bin/box-$u + chown $u.$EVAL_GROUP $EVAL_USER/bin/box-$u + chmod 4550 $EVAL_USER/bin/box-$u + done diff --git a/bin/mo-install b/bin/mo-install index e4ad6f8..982987f 100755 --- a/bin/mo-install +++ b/bin/mo-install @@ -20,17 +20,7 @@ cd .. chown -R $EVAL_USER.$EVAL_GROUP $EVAL_USER chmod 700 $EVAL_USER -# mo-test home -for u in $TEST_USERS ; do - echo "Creating $u" - rm -rf ./$u - mkdir $u - chown $u.$EVAL_GROUP $u - chmod 770 $u - cp $EVAL_USER/bin/box $EVAL_USER/bin/box-$u - chown $u.$EVAL_GROUP $EVAL_USER/bin/box-$u - chmod 4550 $EVAL_USER/bin/box-$u - done +( cd $EVAL_USER ; bin/mo-create-testusers ) # common echo "Creating public" @@ -46,7 +36,7 @@ chown -R $EVAL_USER.$EVAL_GROUP public chmod 755 public # SSH keys (FIXME) -echo "Copying SSH keys" -mkdir $EVAL_USER/.ssh -cp ~mj/.ssh/authorized_keys $EVAL_USER/.ssh/ -chown -R $EVAL_USER $EVAL_USER/.ssh +#echo "Copying SSH keys" +#mkdir $EVAL_USER/.ssh +#cp ~mj/.ssh/authorized_keys $EVAL_USER/.ssh/ +#chown -R $EVAL_USER $EVAL_USER/.ssh -- 2.39.5