From d011be3faa84b86d1e4af518581364bb23149814 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 22 Apr 2020 15:35:08 -0400 Subject: [PATCH] [fix] Sensor should also set minion flag --- setup/so-setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/so-setup b/setup/so-setup index a082d6985..58a9ce0d9 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -56,7 +56,7 @@ fi whiptail_install_type -short_name=$(echo "$hostname" | awk -F. '{print $1}') +short_name=$(echo "$HOSTNAME" | awk -F. '{print $1}') MINION_ID=$(echo "${short_name}_${install_type}" | tr '[:upper:]' '[:lower:]') export MINION_ID @@ -79,6 +79,7 @@ elif [ "$install_type" = 'MASTER' ]; then is_distmaster=true elif [ "$install_type" = 'SENSOR' ]; then is_sensor=true + is_minion=true STRELKA=1 elif [[ "$install_type" =~ ^('SEARCHNODE'|'PARSINGNODE'|'HOTNODE'|'WARMNODE')$ ]]; then is_node=true