Coerces the MongoDB version string before checking its range satisfaction (#14299)

pull/14339/head
thaiphv 7 years ago committed by Rodrigo Nascimento
parent 9c62004f1a
commit 95a54bab77
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
  1. 2
      server/startup/serverRunning.js

@ -62,7 +62,7 @@ Meteor.startup(function() {
return process.exit(1);
}
if (!semver.satisfies(mongoDbVersion, '>=3.2.0')) {
if (!semver.satisfies(semver.coerce(mongoDbVersion), '>=3.2.0')) {
msg += ['', '', 'YOUR CURRENT MONGODB VERSION IS NOT SUPPORTED,', 'PLEASE UPGRADE TO VERSION 3.2 OR LATER'].join('\n');
SystemLogger.error_box(msg, 'SERVER ERROR');

Loading…
Cancel
Save