]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mstart.sh: support read CLUSTERS_LIST from env var 16988/head
authorJiaying Ren <jiaying.ren@umcloud.com>
Fri, 11 Aug 2017 06:35:13 +0000 (14:35 +0800)
committerJiaying Ren <jiaying.ren@umcloud.com>
Fri, 11 Aug 2017 06:48:53 +0000 (14:48 +0800)
so that we can avoid port conflict when we're creating serveral
clusters with different version of Ceph source code at the same
host and at the same time.

It's very convenient for several colleagues using the same
compiling host, but both of them has individual source code
directory.

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
src/mstart.sh

index bbc8ecc5fe6a651ca38d4f236b11d59376c752e2..a1821c2828680104ef6b009dffb26d60b389f0cd 100755 (executable)
@@ -25,10 +25,13 @@ elif [ -e $root_path/../build/CMakeCache.txt ]; then
     root_path=$PWD
 fi
 RUN_ROOT_PATH=${root_path}/run
-CLUSTERS_LIST=$RUN_ROOT_PATH/.clusters.list
 
 mkdir -p $RUN_ROOT_PATH
 
+if [ "$CLUSTERS_LIST" == "" ]
+then
+  CLUSTERS_LIST=$RUN_ROOT_PATH/.clusters.list
+fi
 
 if [ ! -f $CLUSTERS_LIST ]; then
 touch $CLUSTERS_LIST