ESCLUSTERNAME is empty for standalone, so check if it's set before listing

This commit is contained in:
William Wernert
2021-04-07 13:20:55 -04:00
parent ceb1ea61dc
commit 377b14ccb1

View File

@@ -574,7 +574,7 @@ whiptail_end_settings() {
# ADVANCED
if [[ $MANAGERADV == 'ADVANCED' ]]; then
__append_end_msg "Advanced Manager Settings:"
__append_end_msg " ES Cluster Name: $ESCLUSTERNAME"
[[ -n $ESCLUSTERNAME ]] && __append_end_msg " ES Cluster Name: $ESCLUSTERNAME"
if [[ ${#BLOGS[@]} -gt 0 ]]; then
__append_end_msg " Zeek Logs Enabled:"
for log in "${BLOGS[@]}"; do