From cc55b72cf5cf64b26eb4e0078d7bce53cbd21527 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Sep 2012 10:14:50 -0700 Subject: [PATCH] update_all_pbuilders.sh: update pbuilder images on all deb_hosts --- update_all_pbuilders.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 update_all_pbuilders.sh diff --git a/update_all_pbuilders.sh b/update_all_pbuilders.sh new file mode 100755 index 00000000..61d99896 --- /dev/null +++ b/update_all_pbuilders.sh @@ -0,0 +1,22 @@ +#!/bin/sh -x + +set -e + +bindir=`dirname $0` + +pids="" +for rem in `cat $bindir/deb_hosts` +do + echo rem $rem + ssh $rem sudo rm -rf /tmp/ceph-build.\* \; sudo mkdir -p /srv/debian-base + ssh $rem git clone git://github.com/ceph/ceph-build /tmp/ceph-build.$$ + ssh $rem sudo /tmp/ceph-build.$$/update_pbuilder.sh /srv/debian-base + pids="$pids $!" +done + +echo pids $pids +for p in $pids +do + wait $p +done + -- 2.39.5