From f1166584a593bf37dc9d2af63c15f52c93f19b9b Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Wed, 8 Mar 2023 15:11:49 +0530 Subject: [PATCH] fix: Use `mongosh` instead of `mongo` command in entrypoint (#21010) Some merge problem in the fix from https://github.com/appsmithorg/appsmith/pull/20055 caused this line to not get the change. --- deploy/docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/docker/entrypoint.sh b/deploy/docker/entrypoint.sh index bb660214bf..7df15d33c5 100644 --- a/deploy/docker/entrypoint.sh +++ b/deploy/docker/entrypoint.sh @@ -168,7 +168,7 @@ init_replica_set() { mongod --fork --port 27017 --dbpath "$MONGO_DB_PATH" --logpath "$MONGO_LOG_PATH" --replSet mr1 --keyFile /mongodb-key --bind_ip localhost echo "Waiting 10s for MongoDB to start with Replica Set" sleep 10 - mongo "$APPSMITH_MONGODB_URI" --eval 'rs.initiate()' + mongosh "$APPSMITH_MONGODB_URI" --eval 'rs.initiate()' mongod --dbpath "$MONGO_DB_PATH" --shutdown || true fi