feat: limit the mongodump output so the mongo:export command can run via ssh

Closes #84
This commit is contained in:
Jose Diaz-Gonzalez
2018-02-26 01:01:18 -05:00
committed by GitHub
parent f67db8dd53
commit ed7acd355b

View File

@@ -99,7 +99,7 @@ service_export() {
local PASSWORD="$(cat "$SERVICE_ROOT/PASSWORD")"
[[ -n $SSH_TTY ]] && stty -opost
docker exec "$SERVICE_NAME" bash -c "mongodump -d $SERVICE -u \"$SERVICE\" -p \"$PASSWORD\" --authenticationDatabase \"$SERVICE\" --gzip --archive 2>/dev/null"
docker exec "$SERVICE_NAME" bash -c "mongodump -d $SERVICE -u \"$SERVICE\" -p \"$PASSWORD\" --authenticationDatabase \"$SERVICE\" --quiet --gzip --archive 2>/dev/null"
status=$?
[[ -n $SSH_TTY ]] && stty opost
exit $status