Remove remaining direct dokku calls
This commit is contained in:
@@ -11,14 +11,7 @@ mysql-import-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")
|
||||
|
||||
if [[ -t 0 ]]; then
|
||||
dokku_log_fail "No data provided on stdin."
|
||||
fi
|
||||
docker exec -i "$SERVICE_NAME" mysql --user=mysql --password="$PASSWORD" "$SERVICE"
|
||||
service_import "$SERVICE"
|
||||
}
|
||||
|
||||
mysql-import-cmd "$@"
|
||||
|
||||
Reference in New Issue
Block a user