mongosh command instead of mongo

This commit is contained in:
Alireza Ghasemi 2024-06-11 14:25:08 +03:30
parent 40afbf64d6
commit cb92e13763
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ set -eo pipefail
host="$(hostname --ip-address || echo '127.0.0.1')"
if mongo --quiet "$host/test" --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'; then
if mongosh --quiet "$host/test" --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'; then
exit 0
fi