Skip to content

Migrate data folder creation to core #73002

Closed

Description

The data folder creation is currently done from the kibana legacy plugin

preInit: async function (server) {
try {
// Create the data directory (recursively, if the a parent dir doesn't exist).
// If it already exists, does nothing.
await mkdirAsync(server.config().get('path.data'), { recursive: true });
} catch (err) {
server.log(['error', 'init'], err);
// Stop the server startup with a fatal error
throw err;
}
},

we need to move this to core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Feature:Legacy RemovalIssues related to removing legacy KibanaTeam:CoreCore services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions