From d9a84b2f03ad8a24ff9025009802fb31374591fc Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Mon, 2 May 2016 11:27:58 -0500 Subject: [PATCH] [build] Run as group kibana --- tasks/build/os_packages.js | 5 +++-- tasks/build/package_scripts/post_install.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/build/os_packages.js b/tasks/build/os_packages.js index 66ace9731b3f..0cc52fe69dd4 100644 --- a/tasks/build/os_packages.js +++ b/tasks/build/os_packages.js @@ -22,7 +22,7 @@ module.exports = function (grunt) { '--package', targetDir, '-s', 'dir', // input type '--name', 'kibana', - '--description', 'Explore\ and\ visualize\ your\ Elasticsearch\ data.', + '--description', 'Explore\ and\ visualize\ your\ Elasticsearch\ data', '--version', version, '--url', 'https://www.elastic.co', '--vendor', 'Elasticsearch,\ Inc.', @@ -32,7 +32,8 @@ module.exports = function (grunt) { '--before-remove', resolve(packageScriptsDir, 'pre_remove.sh'), '--after-remove', resolve(packageScriptsDir, 'post_remove.sh'), '--config-files', '/opt/kibana/config/kibana.yml', - '--template-value', 'user=kibana' + '--template-value', 'user=kibana', + '--template-value', 'group=kibana' ]; const files = buildDir + '/=/opt/kibana'; diff --git a/tasks/build/package_scripts/post_install.sh b/tasks/build/package_scripts/post_install.sh index 02696466cb3a..16dbba6862a4 100644 --- a/tasks/build/package_scripts/post_install.sh +++ b/tasks/build/package_scripts/post_install.sh @@ -13,4 +13,4 @@ user_create() { if ! user_check "<%= user %>" ; then user_create "<%= user %>" fi -chown <%= user %> /opt/kibana/optimize +chown <%= user %>:<%= group %> /opt/kibana/optimize