jeffutter/dokku-mongodb-plugin — pull request #48 by GTDev87 (2014-07-03 05:04:45+00:00)
Title: added userDrop to get rid of newly made $APP mongodb username

Added:

mongo $mongodb_public_ip:$mongodb_port/$mongodb_database --quiet -u admin -p"$admin_pass" --authenticationDatabase="admin" --eval "db.dropUser(\"${APP}\")"

to counter the:

mongo $mongodb_public_ip:$mongodb_port/$mongodb_database --quiet -u admin -p"$admin_pass" --authenticationDatabase="admin" --eval "db.createUser({user: \"${mongodb_username}\", pwd: \"${mongodb_password}\", roles : [{ role : \"dbOwner\", db: \"${mongodb_database}\"}] })"