mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
[fix] Padding 3->4 spaces, don't use lookup_pillar before salt is installed
This commit is contained in:
@@ -861,9 +861,6 @@ configure_network_sensor() {
|
||||
local nmcli_con_args=( "type" "bond" "mode" "0" )
|
||||
fi
|
||||
|
||||
local MTU
|
||||
MTU=$(lookup_pillar "mtu" "sensor")
|
||||
|
||||
# Create the bond interface only if it doesn't already exist
|
||||
nmcli -f name,uuid -p con | grep -q "$INTERFACE" >> "$setup_log" 2>&1
|
||||
local found_int=$?
|
||||
@@ -2250,6 +2247,7 @@ sensor_pillar() {
|
||||
if [[ $NSMSETUP != 'ADVANCED' ]]; then
|
||||
if [[ $is_cloud ]]; then MTU=1575; else MTU=1500; fi
|
||||
fi
|
||||
export MTU
|
||||
|
||||
# Create the sensor pillar
|
||||
printf '%s\n'\
|
||||
|
||||
@@ -646,8 +646,8 @@ whiptail_first_menu_iso() {
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
option=$(whiptail --title "Security Onion Setup" --menu "Select an option" 10 75 2 \
|
||||
"Install " "Run the standard Security Onion installation " \
|
||||
"Configure Network " "Configure networking only " \
|
||||
"Install " "Run the standard Security Onion installation " \
|
||||
"Configure Network " "Configure networking only " \
|
||||
3>&1 1>&2 2>&3
|
||||
)
|
||||
local exitstatus=$?
|
||||
|
||||
Reference in New Issue
Block a user