]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mkcephfs: fix monmap/osdmap copying
authorSage Weil <sage@newdream.net>
Tue, 24 Mar 2009 19:15:38 +0000 (12:15 -0700)
committerSage Weil <sage@newdream.net>
Tue, 24 Mar 2009 19:15:38 +0000 (12:15 -0700)
src/mkcephfs

index 15fdf18eb9e22825d5ab4e66d163a63833fdb752..af8534fb6c03c5e833251d49707286ba07e34f34 100755 (executable)
@@ -123,7 +123,7 @@ for name in $what; do
 
     check_host || continue
 
-    if [ -n "$ssh" ] && ( echo $pushed_to | grep -q " $host " ); then
+    if [ -n "$ssh" ] && ( echo $pushed_to | grep -v -q " $host " ); then
        scp -q $osdmap $host:$osdmap
        scp -q $monmap $host:$monmap
        pushed_to="$pushed_to $host "