mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge branch '2.4/dev' of github.com:Security-Onion-Solutions/securityonion into reyesj2/advilm
This commit is contained in:
@@ -656,11 +656,11 @@ check_requirements() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $total_mem_hr -lt $req_mem ]]; then
|
if [[ $total_mem_hr -lt $req_mem ]]; then
|
||||||
whiptail_requirements_error "memory" "${total_mem_hr} GB" "${req_mem} GB"
|
|
||||||
if [[ $is_standalone || $is_heavynode ]]; then
|
if [[ $is_standalone || $is_heavynode ]]; then
|
||||||
echo "This install type will fail with less than $req_mem GB of memory. Exiting setup."
|
echo "This install type will fail with less than $req_mem GB of memory. Exiting setup."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
whiptail_requirements_error "memory" "${total_mem_hr} GB" "${req_mem} GB"
|
||||||
fi
|
fi
|
||||||
if [[ $is_standalone || $is_heavynode ]]; then
|
if [[ $is_standalone || $is_heavynode ]]; then
|
||||||
if [[ $total_mem_hr -gt 15 && $total_mem_hr -lt 24 ]]; then
|
if [[ $total_mem_hr -gt 15 && $total_mem_hr -lt 24 ]]; then
|
||||||
@@ -1604,16 +1604,21 @@ proxy_validate() {
|
|||||||
|
|
||||||
reserve_group_ids() {
|
reserve_group_ids() {
|
||||||
# This is a hack to fix OS from taking group IDs that we need
|
# This is a hack to fix OS from taking group IDs that we need
|
||||||
|
logCmd "groupadd -g 920 docker"
|
||||||
logCmd "groupadd -g 928 kratos"
|
logCmd "groupadd -g 928 kratos"
|
||||||
logCmd "groupadd -g 930 elasticsearch"
|
logCmd "groupadd -g 930 elasticsearch"
|
||||||
logCmd "groupadd -g 931 logstash"
|
logCmd "groupadd -g 931 logstash"
|
||||||
logCmd "groupadd -g 932 kibana"
|
logCmd "groupadd -g 932 kibana"
|
||||||
logCmd "groupadd -g 933 elastalert"
|
logCmd "groupadd -g 933 elastalert"
|
||||||
logCmd "groupadd -g 937 zeek"
|
logCmd "groupadd -g 937 zeek"
|
||||||
|
logCmd "groupadd -g 938 salt"
|
||||||
|
logCmd "groupadd -g 939 socore"
|
||||||
logCmd "groupadd -g 940 suricata"
|
logCmd "groupadd -g 940 suricata"
|
||||||
|
logCmd "groupadd -g 948 elastic-agent-pr"
|
||||||
|
logCmd "groupadd -g 949 elastic-agent"
|
||||||
logCmd "groupadd -g 941 stenographer"
|
logCmd "groupadd -g 941 stenographer"
|
||||||
logCmd "groupadd -g 945 ossec"
|
logCmd "groupadd -g 947 elastic-fleet"
|
||||||
logCmd "groupadd -g 946 cyberchef"
|
logCmd "groupadd -g 960 kafka"
|
||||||
}
|
}
|
||||||
|
|
||||||
reserve_ports() {
|
reserve_ports() {
|
||||||
|
|||||||
@@ -682,6 +682,8 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
fi
|
fi
|
||||||
info "Reserving ports"
|
info "Reserving ports"
|
||||||
reserve_ports
|
reserve_ports
|
||||||
|
info "Reserving group ids"
|
||||||
|
reserve_group_ids
|
||||||
info "Setting Paths"
|
info "Setting Paths"
|
||||||
# Set the paths
|
# Set the paths
|
||||||
set_path
|
set_path
|
||||||
@@ -840,7 +842,10 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
if [[ $monints ]]; then
|
if [[ $monints ]]; then
|
||||||
configure_network_sensor
|
configure_network_sensor
|
||||||
fi
|
fi
|
||||||
|
info "Reserving ports"
|
||||||
reserve_ports
|
reserve_ports
|
||||||
|
info "Reserving group ids"
|
||||||
|
reserve_group_ids
|
||||||
# Set the version
|
# Set the version
|
||||||
mark_version
|
mark_version
|
||||||
# Disable the setup from prompting at login
|
# Disable the setup from prompting at login
|
||||||
|
|||||||
Reference in New Issue
Block a user