Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3 backport] Fix opensearch-env always sources the environment from hardcoded file in #875 #2909

Conversation

peterzhuamazon
Copy link
Member

@peterzhuamazon peterzhuamazon commented Apr 14, 2022

distribution/bin/opensearch-env always sources the environment from the default environment file /etc/default/opensearch. This is an issue if we want to run multiple instances of OpenSearch on the same host. This change lets users override the default behavior by not sourcing the default environment file in case OPENSEARCH_PATH_CONF is set.

Signed-off-by: xuezhou25 [email protected]
Signed-off-by: Peter Zhu [email protected]

Description

[1.x backport] Fix opensearch-env always sources the environment from hardcoded file in #875

Issues Resolved

opensearch-project/opensearch-build#1545 (comment)

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…opensearch-project#875)

distribution/bin/opensearch-env always sources the environment from the default environment file /etc/default/opensearch. This is an issue if we want to run multiple instances of OpenSearch on the same host. This change lets users override the default behavior by not sourcing the default environment file in case OPENSEARCH_PATH_CONF  is set.

Signed-off-by: xuezhou25 <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 57c3c30
Log 4499

Reports 4499

@tlfeng tlfeng added backport PRs or issues specific to backporting features or enhancments and removed backport 1.x labels Apr 14, 2022
@tlfeng tlfeng added the v1.3.0 label Apr 14, 2022
@tlfeng tlfeng merged commit d59ef2f into opensearch-project:1.3 Apr 14, 2022
@peterzhuamazon peterzhuamazon deleted the opensearch-1.3-backport-e3d86baa5a97a813072cb3d5fe9b466d31a44f31 branch April 15, 2022 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments v1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants