8273646: Add openssl from path variable also in to Default System Openssl Path in OpensslArtifactFetcher

Reviewed-by: weijun
This commit is contained in:
Thejasvi Voniadka 2021-09-21 09:01:09 +00:00 committed by Abdul Kolarkunnu
parent 65ed0a742e
commit a5108a605e

View File

@ -82,8 +82,8 @@ public class OpensslArtifactFetcher {
}
private static String getDefaultSystemOpensslPath(String version) {
if (verifyOpensslVersion("/usr/bin/openssl", version)) {
return "/usr/bin/openssl";
if (verifyOpensslVersion("openssl", version)) {
return "openssl";
} else if (verifyOpensslVersion("/usr/local/bin/openssl", version)) {
return "/usr/local/bin/openssl";
}