File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,17 @@ while getopts 'vwt:l:' OPTION; do
4242done
4343shift " $(( $OPTIND - 1 )) "
4444
45- OPENSEARCH_URL= ${OPENSEARCH_URL :- " https://opensearch:9200 " }
45+
4646OPENSEARCH_PRIMARY=${OPENSEARCH_PRIMARY:- " opensearch-local" }
47+ if [[ -z " $OPENSEARCH_URL " ]]; then
48+ if [[ " $OPENSEARCH_PRIMARY " == " opensearch-local" ]]; then
49+ OPENSEARCH_URL=" https://opensearch:9200"
50+ else
51+ echo " No URL specified for $OPENSEARCH_PRIMARY , going to sleep" >&2
52+ sleep infinity
53+ exit 1
54+ fi
55+ fi
4756MALCOLM_NETWORK_INDEX_PATTERN=${MALCOLM_NETWORK_INDEX_PATTERN:- " arkime_sessions3-*" }
4857ARKIME_NETWORK_INDEX_PATTERN=${ARKIME_NETWORK_INDEX_PATTERN:- " arkime_sessions3-*" }
4958OPENSEARCH_SSL_CERTIFICATE_VERIFICATION=${OPENSEARCH_SSL_CERTIFICATE_VERIFICATION:- " false" }
You can’t perform that action at this time.
0 commit comments