File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 2121# NOTE: If you plan on running the splunk container while keeping Splunk
2222# inactive for long periods of time, this script may give misleading
2323# health results
24+
2425if [[ " " == " $NO_HEALTHCHECK " ]]; then
26+ if [[ " false" == " $SPLUNKD_SSL_ENABLE " ]]; then
27+ SCHEME=" http"
28+ else
29+ SCHEME=" https"
30+ fi
2531 # If NO_HEALTHCHECK is NOT defined, then we want the healthcheck
2632 state=" $( < $CONTAINER_ARTIFACT_DIR /splunk-container.state) "
2733
2834 case " $state " in
2935 running|started)
30- if [[ " false" != " $SPLUNKD_SSL_ENABLE " ]]; then
31- curl -m 30 -f -k https://localhost:8089/
32- else
33- curl -m 30 -f -k http://localhost:8089/
36+ curl -m 30 -f -k $SCHEME ://localhost:8089/
3437 exit $?
3538 ;;
3639 * )
You can’t perform that action at this time.
0 commit comments