Skip to content

Commit

Permalink
Merge pull request #13 from MartinRamm/bugfix/11
Browse files Browse the repository at this point in the history
Fixes #11: `de` command for `bitnami/monogodb` with root user
  • Loading branch information
MartinRamm authored Sep 22, 2020
2 parents 47a6504 + b9ccbb1 commit cf0f22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ de() {
command='if [ -z "$MONGO_INITDB_ROOT_USERNAME" ]; then mongo; else mongo -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD"; fi'
;;
"bitnami/mongodb")
command='if [ -z "$MONGODB_USERNAME" ]; then mongo; else mongo -u "$MONGODB_USERNAME" -p "$MONGODB_PASSWORD" "$MONGODB_DATABASE"; fi'
command='if [ ! -z "$MONGODB_ROOT_PASSWORD" ]; then mongo -u root -p "$MONGODB_ROOT_PASSWORD"; elif [ ! -z $MONGODB_USERNAME ]; then mongo -u "$MONGODB_USERNAME" -p "$MONGODB_PASSWORD" "$MONGODB_DATABASE"; else mongo; fi'
;;
centos/mongodb*)
command='mongo -u "admin" -p "$MONGODB_ADMIN_PASSWORD" --authenticationDatabase admin'
Expand Down

0 comments on commit cf0f22d

Please sign in to comment.