clear logs

This commit is contained in:
Marco Ochse
2016-02-06 04:13:32 +01:00
parent 68379a1a25
commit 63ba812446
3 changed files with 14 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# T-Pot #
# Suricata upstart script #
# #
# v16.03.1 by mo, DTAG, 2015-12-11 #
# v16.03.2 by mo, DTAG, 2016-02-06 #
########################################################
description "Suricata"
@ -16,6 +16,11 @@ pre-start script
if [ "$myCID" != "" ];
then docker rm -v $myCID;
fi
# Remove any data from previous container
rm -rf /data/suricata/*
mkdir -p /data/suricata/log
chmod 760 -R /data/suricata
chown tpot:tpot -R /data/suricata
myIF=$(route | grep default | awk '{ print $8 }')
/sbin/ethtool --offload $myIF rx off tx off
/sbin/ethtool -K $myIF gso off gro off