Fix entrypoint.sh external mongo replica set check (#16151)
This commit is contained in:
parent
83fc89f1a1
commit
5a6ab1d094
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user