mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[build] Run as group kibana
This commit is contained in:
parent
53871671e2
commit
d9a84b2f03
2 changed files with 4 additions and 3 deletions
|
@ -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';
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue