Fix data checks

This commit is contained in:
Wes Lambert
2020-01-29 01:13:40 +00:00
parent 5e0299e7bb
commit 48ebc5e2e3

View File

@@ -59,7 +59,7 @@ fi
delete_pcap() {
PCAP_DATA="/nsm/pcap/"
[ -f $PCAP_DATA ] && so-pcap-stop && rm -rf $PCAP_DATA/* && so-pcap-start
[ -d $PCAP_DATA ] && so-pcap-stop && rm -rf $PCAP_DATA/* && so-pcap-start
}
delete_suricata() {
SURI_LOG="/opt/so/log/suricata/eve.json"
@@ -67,7 +67,7 @@ delete_suricata() {
}
delete_zeek() {
ZEEK_LOG="/nsm/zeek/logs/"
[ -f $ZEEK_LOG ] && so-zeek-stop && rm -rf $ZEEK_LOG/* && so-zeek-start
[ -d $ZEEK_LOG ] && so-zeek-stop && rm -rf $ZEEK_LOG/* && so-zeek-start
}
delete_pcap