chore: Add role details in replica set error message (#18472)
This commit is contained in:
parent
abf54ec84f
commit
3144c0a452
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user