]> mj.ucw.cz Git - moe.git/commitdiff
New script for distribution of feedback.
authorMartin Mares <mj@ucw.cz>
Tue, 3 Jul 2007 12:27:10 +0000 (14:27 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 3 Jul 2007 12:27:10 +0000 (14:27 +0200)
bin/mo-push-feedback [new file with mode: 0755]

diff --git a/bin/mo-push-feedback b/bin/mo-push-feedback
new file mode 100755 (executable)
index 0000000..403ed8b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+while IFS="    " read LOGIN FULL MACH ; do
+       if [ -z "$1" -o "$1" == "$LOGIN" ] ; then
+               echo "$LOGIN -> $MACH"
+               D=/mo/users/$LOGIN/$LOGIN/
+               rsync -av ~mo-eval/testing/$LOGIN root@$MACH:$D/results
+               ssh root@$MACH "cd $D && chown -R $LOGIN.$LOGIN results"
+       fi </dev/null
+done <userlist