Skip to content

Instantly share code, notes, and snippets.

@abn
Created November 15, 2013 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abn/7484805 to your computer and use it in GitHub Desktop.
Save abn/7484805 to your computer and use it in GitHub Desktop.
Convenience wrapper script to interact with mongofiles on openshift
#!/bin/bash
# Wrapper script interact with mongofiles
MONGOFILES_CMD="mongofiles \
-u $OPENSHIFT_MONGODB_DB_USERNAME \
-p $OPENSHIFT_MONGODB_DB_PASSWORD \
-h $OPENSHIFT_MONGODB_DB_HOST \
--port $OPENSHIFT_MONGODB_DB_PORT \
-d $OPENSHIFT_APP_NAME"
$MONGOFILES_CMD $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment