-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add support for "MONGODB_URI" environment variable #30
Conversation
test/s3/docker-compose.yml
Outdated
- restore | ||
|
||
# test for backup in command mode using "MONGODB_URI" environment variable | ||
app_mongodb_uri: &app_mongodb_uri |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't use it for merge, &app_mongodb_uri
is unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the anchor.
if [ "x${MONGODB_AUTHDB}" != "x" ]; then | ||
MONGODUMP_OPTS="${MONGODUMP_OPTS} --authenticationDatabase ${MONGODB_AUTHDB}" | ||
if [ "x${MONGODB_URI}" != "x" ]; then | ||
MONGODUMP_OPTS="--uri=${MONGODB_URI} ${MONGODUMP_OPTS}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't I quote MONGODB_URI
in case it contains &
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with a URI containing &
, but it works as expected.
What I did