]> mj.ucw.cz Git - moe.git/blob - mop/mo-push-certs
Moved everything related to MO-P to mop/. This cleans up bin/.
[moe.git] / mop / mo-push-certs
1 #!/bin/bash
2 [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; }
3 set -e
4 . config
5
6 while IFS="     " read LOGIN FULL MACH ; do
7         if [ -z "$1" -o "$1" == "$LOGIN" ] ; then
8                 echo "$LOGIN -> $MACH"
9                 D=/mo/users/$LOGIN/$LOGIN/
10                 rsync -av $D/.mo root@$MACH:$D/
11         fi </dev/null
12 done <userlist