[build] template chown optimize dir

This commit is contained in:
Jonathan Budzenski 2016-05-25 16:27:20 -05:00
parent 6189c19de8
commit 9213e61608
2 changed files with 2 additions and 1 deletions

View file

@ -39,6 +39,7 @@ export default (grunt) => {
'--config-files', config.path.kibanaConfig,
'--template-value', `user=${config.user}`,
'--template-value', `group=${config.group}`,
'--template-value', `optimizeDir=${config.path.home}/optimize`,
//config folder is moved to path.conf, exclude {path.home}/config
//uses relative path to --prefix, strip the leading /

View file

@ -14,4 +14,4 @@ user_create() {
if ! user_check "<%= user %>" ; then
user_create "<%= user %>"
fi
chown -R <%= user %>:<%= group %> /opt/kibana/optimize
chown -R <%= user %>:<%= group %> <%= optimizeDir %>