From cc023a489508426369337dea3428d985a7f22d89 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 12 Mar 2008 20:36:12 +0100 Subject: [PATCH] Added a simple utility for pushing of submit certificates to machines. --- bin/mo-push-certs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/mo-push-certs diff --git a/bin/mo-push-certs b/bin/mo-push-certs new file mode 100755 index 0000000..54b84ba --- /dev/null +++ b/bin/mo-push-certs @@ -0,0 +1,12 @@ +#!/bin/bash +[ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; } +set -e +. config + +while IFS=" " read LOGIN FULL MACH ; do + if [ -z "$1" -o "$1" == "$LOGIN" ] ; then + echo "$LOGIN -> $MACH" + D=/mo/users/$LOGIN/$LOGIN/ + rsync -av $D/.mo root@$MACH:$D/ + fi