summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorSviatlana Zuiko <sviatlana.zuiko@mongodb.com>2022-08-08 21:42:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-08 22:21:16 +0000
commit953a8c7c168ba406242fa844e635aae4ac6edd23 (patch)
tree3f95b4f12cc7fc78cbe5b52d9db5632ebf7e33ec /src/mongo/shell
parentf62d857f440e1340c7338d81c128d0682305f777 (diff)
downloadmongo-953a8c7c168ba406242fa844e635aae4ac6edd23.tar.gz
Revert "SERVER-68119 Standardized mongo[/d/s/q] lookup"
This reverts commit 152fde419e0d31a80f1211738f4b264892c85797.
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/servers.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js
index d2f88ff689d..769586308fe 100644
--- a/src/mongo/shell/servers.js
+++ b/src/mongo/shell/servers.js
@@ -77,18 +77,10 @@ MongoRunner = function() {};
MongoRunner.dataDir = "/data/db";
MongoRunner.dataPath = "/data/db/";
-var installDir = _getEnv("INSTALL_DIR");
-if (installDir) {
- MongoRunner.mongodPath = installDir + "/mongod";
- MongoRunner.mongosPath = installDir + "/mongos";
- MongoRunner.mongoqPath = installDir + "/mongoqd";
- MongoRunner.mongoShellPath = installDir + "/mongo";
-} else {
- MongoRunner.mongodPath = "mongod";
- MongoRunner.mongosPath = "mongos";
- MongoRunner.mongoqPath = "mongoqd";
- MongoRunner.mongoShellPath = "mongo";
-}
+MongoRunner.mongodPath = "mongod";
+MongoRunner.mongosPath = "mongos";
+MongoRunner.mongoqPath = "mongoqd";
+MongoRunner.mongoShellPath = "mongo";
MongoRunner.VersionSub = function(pattern, version) {
this.pattern = pattern;