[fix] Sensor should also set minion flag

This commit is contained in:
William Wernert
2020-04-22 15:35:08 -04:00
parent 4024c9758c
commit d011be3faa

View File

@@ -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