mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
change log_size_limit logic - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/551
This commit is contained in:
committed by
William Wernert
parent
5f2fa0fdc5
commit
cca408e2d8
@@ -33,6 +33,15 @@ calculate_useable_cores() {
|
|||||||
|
|
||||||
set_defaul_log_size() {
|
set_defaul_log_size() {
|
||||||
|
|
||||||
|
case $INSTALLTYPE in
|
||||||
|
EVAL | HEAVYNODE)
|
||||||
|
PERCENTAGE=50
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
PERCENTAGE=80
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
local disk_dir="/"
|
local disk_dir="/"
|
||||||
if [ -d /nsm ]; then
|
if [ -d /nsm ]; then
|
||||||
disk_dir="/nsm"
|
disk_dir="/nsm"
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ whiptail_log_size_limit() {
|
|||||||
|
|
||||||
log_size_limit=$(whiptail --title "Security Onion Setup" --inputbox \
|
log_size_limit=$(whiptail --title "Security Onion Setup" --inputbox \
|
||||||
"Please specify the amount of disk space (in GB) you would like to allocate for Elasticsearch data storage. \
|
"Please specify the amount of disk space (in GB) you would like to allocate for Elasticsearch data storage. \
|
||||||
By default, this is set to 85% of the disk space allotted for /nsm." 10 75 "$log_size_limit" 3>&1 1>&2 2>&3)
|
By default, this is set to 80% of the disk space allotted for /nsm." 10 75 "$log_size_limit" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
|||||||
Reference in New Issue
Block a user