Skip to content

Commit

Permalink
Create default ES_TMPDIR on Windows (#30325)
Browse files Browse the repository at this point in the history
If the elasticsearch-env bash script chooses $ES_TMPDIR
then it also creates the directory.  This change makes
elasticsearch-env.bat do the same thing: if %ES_TMPDIR%
is chosen by the script then the script will ensure it
exists, but if %ES_TMPDIR% is already set then the user
is responsible for creating it.

Relates #27609
Relates #28217
  • Loading branch information
droberts195 committed May 2, 2018
1 parent 5deda69 commit ea35a16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distribution/src/bin/elasticsearch-env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,7 @@ set ES_DISTRIBUTION_TYPE=${es.distribution.type}

if not defined ES_TMPDIR (
set ES_TMPDIR=!TMP!\elasticsearch
if not exist "!ES_TMPDIR!" (
mkdir "!ES_TMPDIR!"
)
)

0 comments on commit ea35a16

Please sign in to comment.