mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[refactor] Remove is_smooshed var
This commit is contained in:
@@ -176,7 +176,6 @@ elif [ "$install_type" = 'STANDALONE' ]; then
|
||||
is_distmanager=true
|
||||
is_node=true
|
||||
is_sensor=true
|
||||
is_smooshed=true
|
||||
elif [ "$install_type" = 'MANAGERSEARCH' ]; then
|
||||
is_manager=true
|
||||
is_distmanager=true
|
||||
@@ -194,7 +193,6 @@ elif [ "$install_type" = 'HEAVYNODE' ]; then
|
||||
is_node=true
|
||||
is_minion=true
|
||||
is_sensor=true
|
||||
is_smooshed=true
|
||||
elif [ "$install_type" = 'FLEET' ]; then
|
||||
is_minion=true
|
||||
is_fleet_standalone=true
|
||||
|
||||
@@ -35,7 +35,7 @@ whiptail_basic_zeek() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]]; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
@@ -53,7 +53,7 @@ whiptail_basic_suri() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]];; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
@@ -77,7 +77,7 @@ whiptail_zeek_pins() {
|
||||
cpu_core_list_whiptail+=("$item" "OFF")
|
||||
done
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]];; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
@@ -1354,11 +1354,11 @@ whiptail_suricata_pins() {
|
||||
readarray -t filtered_core_list <<< "$(echo "${cpu_core_list[@]}" "${ZEEKPINS[@]}" | xargs -n1 | sort | uniq -u | awk '{print $1}')"
|
||||
|
||||
local filtered_core_str=()
|
||||
for item in "${filtered_core_list[@]}"; do
|
||||
filtered_core_str+=("$item" "")
|
||||
done
|
||||
for item in "${filtered_core_list[@]}"; do
|
||||
filtered_core_str+=("$item" "")
|
||||
done
|
||||
|
||||
if [[ $is_smooshed ]]; then
|
||||
if [[ $is_node && $is_sensor && ! $is_eval ]];; then
|
||||
local PROCS=$(expr $lb_procs / 2)
|
||||
if [ "$PROCS" -lt 1 ]; then PROCS=1; else PROCS=$PROCS; fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user