chore: Add role details in replica set error message (#18472)

This commit is contained in:
Shrikant Sharat Kandula 2022-11-27 13:46:05 +05:30 committed by GitHub
parent abf54ec84f
commit 3144c0a452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,9 +172,10 @@ init_replica_set() {
if [[ ${mongo_state: -1} -eq 1 ]]; then
echo "Mongodb cloud Replica Set is enabled"
else
echo -e "\033[0;31m********************************************************************\033[0m"
echo -e "\033[0;31m* MongoDB Replica Set is not enabled *\033[0m"
echo -e "\033[0;31m********************************************************************\033[0m"
echo -e "\033[0;31m*************************************************************************************************************\033[0m"
echo -e "\033[0;31m* MongoDB Replica Set is not enabled *\033[0m"
echo -e "\033[0;31m* Please ensure the credentials provided for MongoDB, has `readWrite` and `clusterMonitor` roles. *\033[0m"
echo -e "\033[0;31m*************************************************************************************************************\033[0m"
exit 1
fi
fi