Allowing all 2.6.0 versions

This commit is contained in:
Michael Schmatz 2014-03-28 11:28:07 -07:00
parent ff7e2d5d47
commit dbc3f91f45

View file

@ -71,7 +71,7 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
allowedMongoVersions = ["v2.5.4","v2.5.5","v2.6.0-rc1"]
allowedMongoVersions = ["v2.5.4","v2.5.5","v2.6.0"]
if which("mongod") and any(i in subprocess.check_output("mongod --version",shell=True) for i in allowedMongoVersions):
mongo_executable = "mongod"
else: