Skip to content

Commit

Permalink
[build] Run as group kibana
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed May 27, 2016
1 parent 5387167 commit d9a84b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tasks/build/os_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand All @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/package_scripts/post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9a84b2

Please sign in to comment.