Skip to content

Commit

Permalink
[deb/rpm] Create PID folder during installation (#83351)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
jbudz and kibanamachine authored Nov 16, 2020
1 parent 32c3676 commit dac35cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
Expand Down
4 changes: 4 additions & 0 deletions src/dev/build/tasks/os_packages/run_fpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
Empty file.

0 comments on commit dac35cf

Please sign in to comment.