mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Don't create rpm/deb/pkg by default, require --os-packages
This commit is contained in:
parent
eb4408fc3e
commit
f61bc1e307
1 changed files with 13 additions and 11 deletions
|
@ -43,17 +43,19 @@ function createPackages(grunt) {
|
|||
commands.push([ 'zip', '-rq', archiveName + '.zip', name ]);
|
||||
}
|
||||
|
||||
// TODO(sissel): Add before-install scripts to create kibana user
|
||||
// TODO(sissel): Check if `fpm` is available
|
||||
if (/linux-x(86|64)$/.test(name)) {
|
||||
// kibana.rpm and kibana.deb
|
||||
var sysv_init = join(distPath, 'services', 'sysv') + '/etc/=/etc/';
|
||||
commands.push(fpm_options.concat(['-t', 'rpm', '-a', arch, '--rpm-os', 'linux', fpm_files, sysv_init]));
|
||||
commands.push(fpm_options.concat(['-t', 'deb', '-a', arch, fpm_files, sysv_init]));
|
||||
} else if (/darwin-x(86|64)$/.test(name)) {
|
||||
// kibana.pkg
|
||||
var launchd = join(distPath, 'services', 'launchd') + '/=/';
|
||||
commands.push(fpm_options.concat(['-t', 'osxpkg', '-a', arch, fpm_files, launchd]));
|
||||
if (grunt.option('os-packages')) {
|
||||
// TODO(sissel): Add before-install scripts to create kibana user
|
||||
// TODO(sissel): Check if `fpm` is available
|
||||
if (/linux-x(86|64)$/.test(name)) {
|
||||
// kibana.rpm and kibana.deb
|
||||
var sysv_init = join(distPath, 'services', 'sysv') + '/etc/=/etc/';
|
||||
commands.push(fpm_options.concat(['-t', 'rpm', '-a', arch, '--rpm-os', 'linux', fpm_files, sysv_init]));
|
||||
commands.push(fpm_options.concat(['-t', 'deb', '-a', arch, fpm_files, sysv_init]));
|
||||
} else if (/darwin-x(86|64)$/.test(name)) {
|
||||
// kibana.pkg
|
||||
var launchd = join(distPath, 'services', 'launchd') + '/=/';
|
||||
commands.push(fpm_options.concat(['-t', 'osxpkg', '-a', arch, fpm_files, launchd]));
|
||||
}
|
||||
}
|
||||
|
||||
return mkdirp.mkdirpAsync(target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue