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