OpenSearch/distribution/src/bin
Andrey Ershov d35d9d1886 cd ES_HOME in elasticsearch-env (#39937)
This commit adds cd $ES_HOME to elasticsearch-env and removes it from
elasticsearch. This way, both elasticsearch and elasticsearch-cli are
executed with the working directory set to $ES_HOME. The need for the
fix arose from the following bug:
1. Explicitly set path.data to relative to ES_HOME path in
elasticsearch.yml.
2. Run elasticsearch from any directory. Elasticsearch is able to
correctly start.
3. Stop elasticsearch.
4. Run elasticsearch-node unsafe-bootstrap, not from ES_HOME directory.
It will fail with an exception.
This commit fixes the issue and adds a new test.

This PR fixes the issue and adds a new test.
Also tests >=100 are renamed because alphabetic order does not work for
them.

(cherry picked from commit 2ffc29306ff7366efc598e7b4dd2ce528895cd3a
with fixes by #40083 and #40118)
2019-03-18 16:26:27 +01:00
..
elasticsearch cd ES_HOME in elasticsearch-env (#39937) 2019-03-18 16:26:27 +01:00
elasticsearch-cli Pass main class by environment variable (#31149) 2018-06-06 21:56:52 -04:00
elasticsearch-cli.bat Exit batch files explictly using ERRORLEVEL (#29583) 2019-01-25 16:44:33 +01:00
elasticsearch-env cd ES_HOME in elasticsearch-env (#39937) 2019-03-18 16:26:27 +01:00
elasticsearch-env.bat cd ES_HOME in elasticsearch-env (#39937) 2019-03-18 16:26:27 +01:00
elasticsearch-keystore Adjust indentation in CLI scripts 2018-06-06 22:52:50 -04:00
elasticsearch-keystore.bat Exit batch files explictly using ERRORLEVEL (#29583) 2019-01-25 16:44:33 +01:00
elasticsearch-node Add tool elasticsearch-node unsafe-bootstrap (#37696) 2019-01-24 19:25:55 +01:00
elasticsearch-node.bat Exit batch files explictly using ERRORLEVEL (#29583) 2019-01-25 16:44:33 +01:00
elasticsearch-plugin Adjust indentation in CLI scripts 2018-06-06 22:52:50 -04:00
elasticsearch-plugin.bat Exit batch files explictly using ERRORLEVEL (#29583) 2019-01-25 16:44:33 +01:00
elasticsearch-service-mgr.exe Packaging: Update procrun executables to version 1.1.0 (#35147) 2018-10-31 16:31:14 -07:00
elasticsearch-service-x64.exe Packaging: Update procrun executables to version 1.1.0 (#35147) 2018-10-31 16:31:14 -07:00
elasticsearch-service.bat Add more diagnostic info when Windows JVM is not found (#33804) (#39652) 2019-03-05 07:34:29 +01:00
elasticsearch-shard add elasticsearch-shard tool (#32281) 2018-09-19 10:28:22 +02:00
elasticsearch-shard.bat Exit batch files explictly using ERRORLEVEL (#29583) 2019-01-25 16:44:33 +01:00
elasticsearch.bat cd ES_HOME in elasticsearch-env (#39937) 2019-03-18 16:26:27 +01:00