glastopf will log to host /data/glastopf

This commit is contained in:
Marco Ochse 2015-12-14 14:28:05 +01:00
parent a5130cbc91
commit 91b5ddce8d

View file

@ -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