From 89f5105aa4a2af4675a0eafe08ac655ccd3acf53 Mon Sep 17 00:00:00 2001 From: Ryan Faircloth <35384120+rfaircloth-splunk@users.noreply.github.com> Date: Mon, 30 Nov 2020 09:07:04 -0500 Subject: [PATCH] fix: checkstate script to honor SPLUNKD_SSL_ENABLE --- splunk/common-files/checkstate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/splunk/common-files/checkstate.sh b/splunk/common-files/checkstate.sh index a7330523..8a16bc44 100755 --- a/splunk/common-files/checkstate.sh +++ b/splunk/common-files/checkstate.sh @@ -27,7 +27,10 @@ if [[ "" == "$NO_HEALTHCHECK" ]]; then case "$state" in running|started) - curl -m 30 -f -k https://localhost:8089/ + if [[ "false" != "$SPLUNKD_SSL_ENABLE" ]]; then + curl -m 30 -f -k https://localhost:8089/ + else + curl -m 30 -f -k http://localhost:8089/ exit $? ;; *)