File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 33set -e
44set -x
55
6+ function print_usage() {
7+ echo " Usage $0 : [MONGO_VERSION] [CONFIGSVR_TYPE (CSRS or SCCC)] [mongodb-consistent-backup EXTRA FLAGS...]"
8+ }
9+
610MONGO_VERSION=${1:- 3.2}
711CONFIGSVR_TYPE=${2:- CSRS}
812MCB_EXTRA=" ${@: 3} "
@@ -19,10 +23,14 @@ pushd $(dirname $0)
1923 export CONFIGSVR_FLAGS=" --replSet=${CONFIGSVR_REPLSET} "
2024 export MONGOS_CONFIGDB=" ${CONFIGSVR_REPLSET} /mongo-cs-1:27017,mongo-cs-2:27017,mongo-cs-3:27017"
2125 echo " # Using CSRS-based config servers: '${MONGOS_CONFIGDB} '"
22- else
26+ elif [ " ${CONFIGSVR_TYPE} " == " SCCC " ] ; then
2327 export CONFIGSVR_FLAGS=
2428 export MONGOS_CONFIGDB=" mongo-cs-1:27017,mongo-cs-2:27017"
2529 echo " # Using SCCC-based config servers: '${MONGOS_CONFIGDB} '"
30+ else
31+ echo " Unsupported CONFIGSVR_TYPE field: '${CONFIGSVR_TYPE} '! Supported: CSRS (default) or SCCC"
32+ print_usage
33+ exit 1
2634 fi
2735
2836 # start mongo-mongos service (which starts the whole cluster)
You can’t perform that action at this time.
0 commit comments