Skip to content

Commit

Permalink
Backport data path from PR #7562
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Jul 11, 2016
1 parent 899703f commit 2165805
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ target
.htpasswd
.eslintcache
installedPlugins
data
disabledPlugins
webpackstats.json
config/kibana.dev.yml
Expand Down
File renamed without changes.
Empty file added installedPlugins/.empty
Empty file.
2 changes: 1 addition & 1 deletion src/server/path/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const CONFIG_PATHS = [

const DATA_PATHS = [
process.env.DATA_PATH,
fromRoot('installedPlugins/.data'),
fromRoot('data'),
'/var/lib/kibana'
].filter(Boolean);

Expand Down
5 changes: 5 additions & 0 deletions tasks/build/data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default function (grunt) {
grunt.registerTask('_build:data', function () {
grunt.file.mkdir('build/kibana/data');
});
};
1 change: 1 addition & 0 deletions tasks/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = function (grunt) {
'babel:build',
'_build:babelOptions',
'_build:installedPlugins',
'_build:data',
'_build:packageJson',
'_build:readme',
'_build:babelCache',
Expand Down
1 change: 0 additions & 1 deletion tasks/build/installedPlugins.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = function (grunt) {
grunt.registerTask('_build:installedPlugins', function () {
grunt.file.mkdir('build/kibana/installedPlugins');
grunt.file.mkdir('build/kibana/installedPlugins/.data');
});
};
4 changes: 2 additions & 2 deletions tasks/build/osPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default (grunt) => {
'--template-value', `pluginsDir=${config.path.plugins}`,
'--template-value', `dataDir=${config.path.data}`,
//uses relative path to --prefix, strip the leading /
'--exclude', `${config.path.home.slice(1)}/installedPlugins/.data`
'--exclude', `${config.path.home.slice(1)}/data`
];
const debOptions = [
'-t', 'deb',
Expand All @@ -57,7 +57,7 @@ export default (grunt) => {
];
const args = [
`${buildDir}/=${config.path.home}/`,
`${buildDir}/installedPlugins/.data/=${config.path.data}/`,
`${buildDir}/data/=${config.path.data}/`,
`${servicesByName.sysv.outputDir}/etc/=/etc/`,
`${servicesByName.systemd.outputDir}/etc/=/etc/`
];
Expand Down

0 comments on commit 2165805

Please sign in to comment.