mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 03:32:53 +01:00
[fix] Sensor should also set minion flag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user