CLI tools in linux only work from within $ES_HOME #40889
Labels
blocker
>bug
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
Team:Delivery
Meta label for Delivery team
v7.0.0-rc2
In https://github.com/elastic/elasticsearch/blob/master/distribution/src/bin/elasticsearch-cli,
when we
we cd in
$ES_HOME
changing the pwd. However, thedirname
commands in the followingwill have an output that is always relevant to the current dir from where the user ran the cli command.
The combination of these two mean, that the
source
command will try to source a file, the path of which will be the concatenation of$ES_HOME
and the dir from where the user ran the cli command. This will only work when the user runs the command from$ES_HOME
. Example output from @pheyos who raised this:./elasticsearch-cli: line 10: ./x-pack-env: No such file or directory
is because the pwd at that time is$ES_HOME
and not$ES_HOME/bin
The text was updated successfully, but these errors were encountered: