[build] Run as group kibana

This commit is contained in:
Jonathan Budzenski 2016-05-02 11:27:58 -05:00
parent 53871671e2
commit d9a84b2f03
2 changed files with 4 additions and 3 deletions

View file

@ -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';

View file

@ -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