mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-12 11:19:07 +00:00
Update configs and scripts
This commit is contained in:
parent
bd4e58dca7
commit
d81f4da035
4 changed files with 8 additions and 6 deletions
|
@ -4,9 +4,9 @@
|
|||
# T-Pot Community Edition #
|
||||
# Check container and services script #
|
||||
# #
|
||||
# v0.11 by mo, DTAG, 2015-01-28 #
|
||||
# v0.12 by mo, DTAG, 2015-01-29 #
|
||||
########################################################
|
||||
if [ -f /var/run/check.lock ];
|
||||
if [ -a /var/run/check.lock ];
|
||||
then exit
|
||||
fi
|
||||
|
||||
|
@ -32,6 +32,7 @@ for i in $myIMAGES
|
|||
do
|
||||
service $j stop
|
||||
done
|
||||
iptables -w -F
|
||||
service docker restart
|
||||
while true
|
||||
do
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
# T-Pot Community Edition #
|
||||
# Container and services restart script #
|
||||
# #
|
||||
# v0.10 by mo, DTAG, 2015-01-28 #
|
||||
# v0.11 by mo, DTAG, 2015-01-29 #
|
||||
########################################################
|
||||
|
||||
if [ -f /var/run/check.lock ];
|
||||
if [ -a /var/run/check.lock ];
|
||||
then exit
|
||||
fi
|
||||
|
||||
|
@ -22,6 +22,7 @@ if [ $myUPTIME -gt 5 ];
|
|||
do
|
||||
service $i stop
|
||||
done
|
||||
iptables -w -F
|
||||
service docker restart
|
||||
while true
|
||||
do
|
||||
|
|
|
@ -10,7 +10,7 @@ myCOUNT=1
|
|||
myIMAGES=$(cat /data/images.conf)
|
||||
while true
|
||||
do
|
||||
if ! [ -f /var/run/check.lock ];
|
||||
if ! [ -a /var/run/check.lock ];
|
||||
then break
|
||||
fi
|
||||
sleep 0.1
|
||||
|
|
|
@ -20,5 +20,5 @@ end script
|
|||
script
|
||||
# Delayed start to avoid rapid respawning
|
||||
sleep $(((RANDOM % 5)+5))
|
||||
/usr/bin/docker run --name ews --volumes-from dionaea --volumes-from glastopf --volumes-from honeytrap --volumes-from kippo --rm=true -v /data/ews/:/data/ews/ --link kippo:kippo dtagdevsec/ews
|
||||
/usr/bin/docker run --name ews --volumes-from dionaea --volumes-from glastopf --volumes-from honeytrap --volumes-from kippo --rm=true -v /data/ews/conf/:/data/ews/conf/ -v /data/ews/ --link kippo:kippo dtagdevsec/ews
|
||||
end script
|
||||
|
|
Loading…
Reference in a new issue