Remove remaining direct dokku calls

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-16 00:24:38 -04:00
parent 0c71539f82
commit 69779da97d
5 changed files with 59 additions and 44 deletions

View File

@@ -11,15 +11,7 @@ mysql-export-cmd() {
[[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a name for the service"
verify_service_name "$SERVICE"
SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE"
SERVICE_NAME="$(get_service_name "$SERVICE")"
PASSWORD=$(cat "$SERVICE_ROOT/PASSWORD")
[[ -n $SSH_TTY ]] && stty -opost
docker exec "$SERVICE_NAME" mysqldump --user=mysql --password="$PASSWORD" "$SERVICE"
status=$?
[[ -n $SSH_TTY ]] && stty opost
exit $status
service_export "$SERVICE"
}
mysql-export-cmd "$@"