From: Jiaying Ren Date: Fri, 11 Aug 2017 06:35:13 +0000 (+0800) Subject: mstart.sh: support read CLUSTERS_LIST from env var X-Git-Tag: v13.0.1~1122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f6e282d237ddc6004cf4b32d2b5fe3671dfc9e1d;p=ceph.git 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 --- 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