-
Notifications
You must be signed in to change notification settings - Fork 282
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
Add support for OPENSEARCH_JAVA_HOME #1603
Conversation
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@dblock whenever you have time please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
"%JAVA_HOME%\bin\java" -cp "%SCRIPT_DIR%\..\..\opendistro_security_ssl\*;%SCRIPT_DIR%\..\deps\*;%SCRIPT_DIR%\..\*;%SCRIPT_DIR%\..\..\..\lib\*" org.opensearch.security.tools.AuditConfigMigrater %* | ||
|
||
rem comparing to empty string makes this equivalent to bash -v check on env var | ||
if not "%OPENSEARCH_JAVA_HOME%" == "" ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swap the if
to avoid the not
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ported it from opensearch-env.bat
, just to keep the detection of the JVM to use uniform
Codecov Report
@@ Coverage Diff @@
## main #1603 +/- ##
============================================
- Coverage 64.68% 64.66% -0.03%
Complexity 3219 3219
============================================
Files 247 247
Lines 17351 17351
Branches 3082 3082
============================================
- Hits 11224 11220 -4
- Misses 4577 4581 +4
Partials 1550 1550
Continue to review full report at Codecov.
|
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Andriy Redko andriy.redko@aiven.io
Description
Add support for OPENSEARCH_JAVA_HOME
Issues Resolved
Closes #1600
Testing
The scripts have been tested under Windows / Linux
Check List
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.