Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,13 @@ private static int validateElasticsearch() {
return 1;
}

if (!(elasticsearch_host.startsWith("https://") || elasticsearch_host.startsWith("http://")) ) {
print(" [WARNING]");
print(" It was determined that the user provided Elasticsearch endpoint '" + elasticsearch_host + "' did not properly set or include protocol 'http://' OR 'https://'");
print("");
return 1;
}

print(" [OK]");
print("");
return 0; // no warnings
Expand Down