From f6e282d237ddc6004cf4b32d2b5fe3671dfc9e1d Mon Sep 17 00:00:00 2001 From: Jiaying Ren Date: Fri, 11 Aug 2017 14:35:13 +0800 Subject: [PATCH] mstart.sh: support read CLUSTERS_LIST from env var 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 --- src/mstart.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mstart.sh b/src/mstart.sh index bbc8ecc5fe6a..a1821c282868 100755 --- a/src/mstart.sh +++ b/src/mstart.sh @@ -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 -- 2.47.3