You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "${CLUSTERED_MODE}"=="true" ]] && [[ "${ACTION}"=="init" ]];then
55
-
try "${COMPOSE_FILE_PATH}/initiate-replica-set.sh $STACK" throw "Fatal: Initiate Mongo replica set failed"
56
-
else
57
-
try "docker exec -i $(docker ps -q -f name=openhim_mongo) mongo --eval \"rs.initiate()\"" throw "Could not initiate replica set for the single mongo instance. Some services use \
58
-
mongo event listeners which only work with a replica set"
54
+
if [[ "${ACTION}"=="init" ]];then
55
+
if [[ "${CLUSTERED_MODE}"=="true" ]];then
56
+
try "${COMPOSE_FILE_PATH}/initiate-replica-set.sh $STACK" throw "Fatal: Initiate Mongo replica set failed"
57
+
else
58
+
try "docker exec -i $(docker ps -q -f name=openhim_mongo) mongo --eval \"rs.initiate()\"" throw "Could not initiate replica set for the single mongo instance. Some services use \
59
+
mongo event listeners which only work with a replica set"
0 commit comments