From 13e8edf9504881aeb39b9a9d86c1f7b0be1b4668 Mon Sep 17 00:00:00 2001 From: Harold Drost Date: Mon, 23 May 2016 16:31:34 +0100 Subject: [PATCH] Fix permissions on files inside the folder too. Had this issue: Error: EACCES: permission denied, open '/opt/kibana/optimize/.babelcache.json' Manually running ```chown -R kibana:kibana /opt/kibana/optimize``` fixed it. --- tasks/build/pleaserun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build/pleaserun.js b/tasks/build/pleaserun.js index 9f99955ad9ca5..a48e7ddb10bc2 100644 --- a/tasks/build/pleaserun.js +++ b/tasks/build/pleaserun.js @@ -26,6 +26,6 @@ module.exports = function createServices(grunt) { grunt.file.mkdir(userScriptsDir); exec('please-manage-user', ['--output', userScriptsDir, 'kibana']); - appendFileSync(resolve(userScriptsDir, 'installer.sh'), 'chown kibana:kibana /opt/kibana/optimize'); + appendFileSync(resolve(userScriptsDir, 'installer.sh'), 'chown -R kibana:kibana /opt/kibana/optimize'); }); };