mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[7.3] [kbn/es] use an ES_TMPDIR that is within the install pat… (#47966)
* [kbn/es] use an ES_TMPDIR that is within the install path * support tests which don't pass installPath
This commit is contained in:
parent
cbf7643fd1
commit
3d94a21d55
2 changed files with 5 additions and 0 deletions
|
@ -264,6 +264,7 @@ exports.Cluster = class Cluster {
|
|||
this._process = execa(ES_BIN, args, {
|
||||
cwd: installPath,
|
||||
env: {
|
||||
...(installPath ? { ES_TMPDIR: path.resolve(installPath, 'ES_TMPDIR') } : {}),
|
||||
...process.env,
|
||||
...(options.bundledJDK ? { JAVA_HOME: '' } : {}),
|
||||
...(options.esEnvVars || {}),
|
||||
|
|
|
@ -65,6 +65,10 @@ exports.installArchive = async function installArchive(archive, options = {}) {
|
|||
await decompress(dest, installPath);
|
||||
log.info('extracted to %s', chalk.bold(installPath));
|
||||
|
||||
const tmpdir = path.resolve(installPath, 'ES_TMPDIR');
|
||||
fs.mkdirSync(tmpdir, { recursive: true });
|
||||
log.info('created %s', chalk.bold(tmpdir));
|
||||
|
||||
if (license !== 'oss') {
|
||||
// starting in 6.3, security is disabled by default. Since we bootstrap
|
||||
// the keystore, we can enable security ourselves.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue