Fix entrypoint.sh external mongo replica set check (#16151)

This commit is contained in:
Sumesh Pradhan 2022-09-13 14:14:01 +05:30 committed by GitHub
parent 83fc89f1a1
commit 5a6ab1d094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ init_replica_set() {
# Check mongodb cloud Replica Set
echo "Checking Replica Set of external MongoDB"
if appsmithctl check_replica_set; then
if [[ $(mongo "$APPSMITH_MONGODB_URI" --quiet --eval "rs.status().ok") -eq 1 ]]; then
echo "Mongodb cloud Replica Set is enabled"
else
echo -e "\033[0;31m********************************************************************\033[0m"