[deb/rpm] Create PID folder during installation (#83351)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Jonathan Budzenski 2020-11-16 14:44:43 -06:00 committed by GitHub
parent 32c3676b3d
commit dac35cfcfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -17,6 +17,7 @@ set_chmod() {
set_chown() {
chown <%= user %>:<%= group %> <%= logDir %>
chown <%= user %>:<%= group %> <%= pidDir %>
chown -R <%= user %>:<%= group %> <%= dataDir %>
chown -R root:<%= group %> ${KBN_PATH_CONF}
}

View file

@ -112,6 +112,8 @@ export async function runFpm(
'--template-value',
`logDir=/var/log/kibana`,
'--template-value',
`pidDir=/run/kibana`,
'--template-value',
`envFile=/etc/default/kibana`,
// config and data directories are copied to /usr/share and /var/lib
// below, so exclude them from the main package source located in
@ -120,6 +122,8 @@ export async function runFpm(
`usr/share/kibana/config`,
'--exclude',
`usr/share/kibana/data`,
'--exclude',
'run/kibana/.gitempty',
// flags specific to the package we are building, supplied by tasks below
...pkgSpecificFlags,