mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #12308 from petiepooo/feat-es-ownfs
FEATURE: Check for mountpoint during Elastic size limit calculations
This commit is contained in:
@@ -2152,11 +2152,12 @@ set_default_log_size() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
local disk_dir="/"
|
local disk_dir="/"
|
||||||
if [ -d /nsm ]; then
|
if mountpoint -q /nsm; then
|
||||||
disk_dir="/nsm"
|
disk_dir="/nsm"
|
||||||
fi
|
fi
|
||||||
if [ -d /nsm/elasticsearch ]; then
|
if mountpoint -q /nsm/elasticsearch; then
|
||||||
disk_dir="/nsm/elasticsearch"
|
disk_dir="/nsm/elasticsearch"
|
||||||
|
percentage=80
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local disk_size_1k
|
local disk_size_1k
|
||||||
|
|||||||
Reference in New Issue
Block a user