* Revert "Update pleaserun.js to use `--log-directory` with 0.0.28 (#11286)" This reverts commite96a8d8273
. * Revert "[jenkins] update call to pleaserun with --log-path (#11275)" This reverts commitbe609d9505
.
27 lines
777 B
JavaScript
27 lines
777 B
JavaScript
import exec from '../utils/exec';
|
|
import { capitalize } from 'lodash';
|
|
|
|
export default (grunt) => {
|
|
const { path, user, group, name } = grunt.config.get('packages');
|
|
|
|
grunt.registerTask('_build:pleaseRun', function () {
|
|
grunt.config.get('services').forEach((service) => {
|
|
grunt.file.mkdir(service.outputDir);
|
|
exec('pleaserun', [
|
|
'--install',
|
|
'--no-install-actions',
|
|
'--install-prefix', service.outputDir,
|
|
'--overwrite',
|
|
'--name', name,
|
|
'--description', capitalize(name),
|
|
'--user', user,
|
|
'--group', group,
|
|
'--sysv-log-path', `${path.logs}/`,
|
|
'-p', service.name,
|
|
'-v', service.version,
|
|
path.kibanaBin,
|
|
`-c ${path.kibanaConfig}`
|
|
]);
|
|
});
|
|
});
|
|
};
|