]> mj.ucw.cz Git - moe.git/commitdiff
Split installation process.
authorMartin Mares <mj@ucw.cz>
Sun, 3 Jun 2001 18:29:33 +0000 (18:29 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 3 Jun 2001 18:29:33 +0000 (18:29 +0000)
bin/mo-create-testusers [new file with mode: 0755]
bin/mo-install

diff --git a/bin/mo-create-testusers b/bin/mo-create-testusers
new file mode 100755 (executable)
index 0000000..1652298
--- /dev/null
@@ -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
index e4ad6f87242eae37637d2a4fc2607fe730959fa3..982987fcd56c60011a9f7d9127ba5ea85f855e96 100755 (executable)
@@ -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