Skip to content

Commit 3023303

Browse files
author
Ryan Faircloth
authored
fix: checkstate script to honor SPLUNKD_SSL_ENABLE (#437)
1 parent 4ec43b1 commit 3023303

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

splunk/common-files/checkstate.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ if [[ "" == "$NO_HEALTHCHECK" ]]; then
2727

2828
case "$state" in
2929
running|started)
30-
curl -m 30 -f -k https://localhost:8089/
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/
3134
exit $?
3235
;;
3336
*)

0 commit comments

Comments
 (0)