Instead of waiting a fixed amount of time, wait until OpenSearch is listening on the port the securityadmin script uses.
Issues Resolved
Fixes error ERR: Seems there is no OpenSearch running on localhost:9200 - Will exit when OpenSearch is not fast enough on startup and securityadmin.sh emits this error.
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.
Description
Instead of waiting a fixed amount of time, wait until OpenSearch is listening on the port the securityadmin script uses.
Issues Resolved
Fixes error
ERR: Seems there is no OpenSearch running on localhost:9200 - Will exit
when OpenSearch is not fast enough on startup and securityadmin.sh emits this error.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.