blob: 2e76684daa3b71a071dbda9fd40d49157e6ed626 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
# If mongodb container
if [ "$1" = "MONGODB" ]
then
/usr/bin/mongosh --eval 'disableTelemetry()' -u "$MONGODB_USERNAME" -p "$MONGODB_PASSWORD" localhost:27017/production /healthcheck-mongodb.js
exit $?
fi
# If collector
/usr/bin/python3 ./healthcheck.py "$1" || exit 1
|