-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
MongoDB 6.0.0 shell command deprecation
MongoDB recently deprecated the mongo command in favor of the more advanced shell command mongosh. As a result, when installing RocketChat with the following args results in an error for the mongo command used for instantiating the replica set.
Install command flags used
Since the installer attempts to install the latest version of mongoDB it is currently selecting v 6.0.0, and I'm installing Rocket Chat version 5.0.0
./rocketchatctl install --version=5.0.0 --webserver=none
./rocketchatctl: line 431: mongo: command not found
The function with line 431:
initiate_and_start_mongo() {
systemctl daemon-reload
systemctl enable mongod
systemctl start mongod
if [[ -n $(pgrep mongod) ]]; then
mongo --eval "printjson(rs.initiate())" >&2
fi
}
This occurs when using the current version of the installer script, which has checksums as follows:
SHA256(rocketchatctl)= 02de8041f43cb37157d81e8c3290f938cc4e7ff53ce2e6674a6dff2ea2309804
MD5(rocketchatctl)= cf053fe64c3a196aca2b79be6a035abd
Commit hash: https://github.com/RocketChat/install.sh/commit/c0e4be7b412cddf234fb43a67e3ce1643b202f2b
Proposed solution
- Update script to use
mongoshinstead ofmongofor the same command.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels