Skip to content

Commit

Permalink
[rpm] Create default environment file at "/etc/sysconfig/kibana" (#82144
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 17, 2020
1 parent 31014bf commit 24c8b82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dev/build/tasks/os_packages/run_fpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export async function runFpm(
}
};

const envFolder = type === 'rpm' ? 'sysconfig' : 'default';

const args = [
// Force output even if it will overwrite an existing file
'--force',
Expand Down Expand Up @@ -140,6 +142,11 @@ export async function runFpm(

// copy package configurations
`${resolveWithTrailingSlash(__dirname, 'service_templates/systemd/')}=/`,

`${resolveWithTrailingSlash(
__dirname,
'service_templates/env/kibana'
)}=/etc/${envFolder}/kibana`,
];

log.debug('calling fpm with args:', args);
Expand Down

0 comments on commit 24c8b82

Please sign in to comment.