mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix df
This commit is contained in:
@@ -81,7 +81,7 @@ function getinstallinfo() {
|
|||||||
|
|
||||||
function pcapspace() {
|
function pcapspace() {
|
||||||
if [[ "$OPERATION" == "setup" ]]; then
|
if [[ "$OPERATION" == "setup" ]]; then
|
||||||
local SPACESIZE=$(df -h /nsm | tail -1 | awk '{print $2}')
|
local SPACESIZE=$(df -k /nsm | tail -1 | awk '{print $2}' | tr -d \n)
|
||||||
else
|
else
|
||||||
|
|
||||||
local NSMSIZE=$(salt '$MINION_ID' disk.usage --out=json | jq -r '.[]."/nsm"."1K-blocks" ')
|
local NSMSIZE=$(salt '$MINION_ID' disk.usage --out=json | jq -r '.[]."/nsm"."1K-blocks" ')
|
||||||
|
|||||||
Reference in New Issue
Block a user