mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-13 12:42:56 +01:00
[fix] Sensor should also set minion flag
This commit is contained in:
@@ -56,7 +56,7 @@ fi
|
|||||||
|
|
||||||
whiptail_install_type
|
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:]')
|
MINION_ID=$(echo "${short_name}_${install_type}" | tr '[:upper:]' '[:lower:]')
|
||||||
export MINION_ID
|
export MINION_ID
|
||||||
@@ -79,6 +79,7 @@ elif [ "$install_type" = 'MASTER' ]; then
|
|||||||
is_distmaster=true
|
is_distmaster=true
|
||||||
elif [ "$install_type" = 'SENSOR' ]; then
|
elif [ "$install_type" = 'SENSOR' ]; then
|
||||||
is_sensor=true
|
is_sensor=true
|
||||||
|
is_minion=true
|
||||||
STRELKA=1
|
STRELKA=1
|
||||||
elif [[ "$install_type" =~ ^('SEARCHNODE'|'PARSINGNODE'|'HOTNODE'|'WARMNODE')$ ]]; then
|
elif [[ "$install_type" =~ ^('SEARCHNODE'|'PARSINGNODE'|'HOTNODE'|'WARMNODE')$ ]]; then
|
||||||
is_node=true
|
is_node=true
|
||||||
|
|||||||
Reference in New Issue
Block a user