Skip to content

Commit

Permalink
Handle Versions Update pmm-framework.sh (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet0191 authored Oct 28, 2024
1 parent ab9d514 commit 9ec6a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmm-tests/pmm-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ add_clients(){
modb_service_name=$(prepare_service_name mongodb_node_$j)
docker run -d -p $MODB_PORT:27017 -v /tmp/modb_${MODB_PORT}/:/tmp/ -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=${MODB_PASSWORD} -e UMASK=0777 --name $modb_service_name mongo:${modb_version}
sleep 20
if [ "${modb_version}" -gt "5" ]; then
if (( $(echo "$modb_version > 5" | bc -l) )); then
docker exec $modb_service_name mongosh -u mongoadmin -p ${MODB_PASSWORD} --eval 'db.setProfilingLevel(2)'
docker cp $SCRIPT_PWD/mongodb_user_setup.js $modb_service_name:/
docker exec $modb_service_name mongosh -u mongoadmin -p ${MODB_PASSWORD} mongodb_user_setup.js
Expand Down

0 comments on commit 9ec6a0d

Please sign in to comment.