mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[deb/rpm] Create PID folder during installation (#83351)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
32c3676b3d
commit
dac35cfcfe
3 changed files with 5 additions and 0 deletions
|
@ -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}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue