]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: set .ceph_port to random port
authorSage Weil <sage@redhat.com>
Mon, 3 Oct 2016 18:52:38 +0000 (14:52 -0400)
committerSage Weil <sage@redhat.com>
Mon, 3 Oct 2016 22:40:07 +0000 (18:40 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
do_cmake.sh

index 9d3c3c1ed4457649b91eba90f39adf8b27cd9055..71340376695d2eaca5544709da435d617988df8a 100755 (executable)
@@ -8,9 +8,13 @@ mkdir build
 cd build
 cmake $@ ..
 
+# minimal config to find plugins
 cat <<EOF > ceph.conf
 plugin dir = lib
 erasure code dir = lib
 EOF
 
+# give vstart a (hopefully) unique mon port to start with
+echo $(( RANDOM % 1000 + 40000 )) > .ceph_port
+
 echo done.