mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
glastopf will log to host /data/glastopf
This commit is contained in:
parent
a5130cbc91
commit
91b5ddce8d
1 changed files with 5 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
# T-Pot #
|
# T-Pot #
|
||||||
# Glastopf upstart script #
|
# Glastopf upstart script #
|
||||||
# #
|
# #
|
||||||
# v16.03.1 by mo, DTAG, 2015-12-11 #
|
# v16.03.2 by mo, DTAG, 2015-12-14 #
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
description "Glastopf"
|
description "Glastopf"
|
||||||
|
@ -16,12 +16,13 @@ pre-start script
|
||||||
if [ "$myCID" != "" ];
|
if [ "$myCID" != "" ];
|
||||||
then docker rm -v $myCID;
|
then docker rm -v $myCID;
|
||||||
fi
|
fi
|
||||||
|
# Remove any data from previous container
|
||||||
|
rm -rf /data/glastopf/*
|
||||||
end script
|
end script
|
||||||
script
|
script
|
||||||
# Delayed start to avoid rapid respawning
|
/usr/bin/docker run --name glastopf --rm=true -v /data/glastopf:/data/glastopf -v /data/ews:/data/ews -p 80:80 dtagdevsec/glastopf:latest1603
|
||||||
sleep $(((RANDOM % 5)+5))
|
|
||||||
/usr/bin/docker run --name glastopf --rm=true -v /data/ews:/data/ews -p 80:80 dtagdevsec/glastopf:latest1603
|
|
||||||
end script
|
end script
|
||||||
post-start script
|
post-start script
|
||||||
|
# Delay next start to avoid rapid respawning
|
||||||
sleep $(((RANDOM % 5)+5))
|
sleep $(((RANDOM % 5)+5))
|
||||||
end script
|
end script
|
||||||
|
|
Loading…
Reference in a new issue