mongosh command instead of mongo
This commit is contained in:
parent
40afbf64d6
commit
cb92e13763
|
|
@ -3,7 +3,7 @@ set -eo pipefail
|
||||||
|
|
||||||
host="$(hostname --ip-address || echo '127.0.0.1')"
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue