]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
initscript: fix .conf push to other nodes
authorSage Weil <sage@newdream.net>
Tue, 24 Mar 2009 19:33:11 +0000 (12:33 -0700)
committerSage Weil <sage@newdream.net>
Tue, 24 Mar 2009 19:33:11 +0000 (12:33 -0700)
src/init-ceph

index c24cc9c023d7ce609bdc29f98c5b4fbb42658c63..c8a4e120812375d484d1e6480ff4c321f5c2f0db 100755 (executable)
@@ -135,7 +135,7 @@ for name in $what; do
     if [ "$host" = "$hostname" ]; then
        cmd="$cmd -c $conf"
     else
-       if echo $pushed_to | grep -q " $host "; then
+       if echo $pushed_to | grep -v -q " $host "; then
            scp -q $conf $host:/tmp/ceph.conf.$$
            pushed_to="$pushed_to $host "
        fi