Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rpm] Create default environment file at "/etc/sysconfig/kibana" #82144

Merged
merged 8 commits into from
Nov 17, 2020
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 @@ -136,6 +138,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