mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
fix find to work with steno and suri pcap
This commit is contained in:
@@ -15,7 +15,7 @@ PCAPLOC=/host/nsm/pcap
|
|||||||
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
||||||
|
|
||||||
# Get the data
|
# Get the data
|
||||||
OLDPCAP=$(find $PCAPLOC -type f -exec stat -c'%n %Z' {} + | sort | grep -v "\." | head -n 1 | awk {'print $2'})
|
OLDPCAP=$(find $PCAPLOC -type f -exec stat -c'%n %Z' {} + | sort | grep -v "/\." | head -n 1 | awk {'print $2'})
|
||||||
DATE=$(date +%s)
|
DATE=$(date +%s)
|
||||||
AGE=$(($DATE - $OLDPCAP))
|
AGE=$(($DATE - $OLDPCAP))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user