mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 04:22:11 +00:00
restart docker service to avoid race ...
... if images have been deleted.
This commit is contained in:
parent
61cb968deb
commit
6e3f3b8d24
1 changed files with 8 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
# T-Pot #
|
||||
# Only start the containers found in /etc/init/ #
|
||||
# #
|
||||
# v16.03.1 by mo, DTAG, 2016-03-09 #
|
||||
# v16.03.2 by mo, DTAG, 2016-04-20 #
|
||||
########################################################
|
||||
|
||||
# Make sure not to interrupt a check
|
||||
|
@ -41,6 +41,13 @@ for i in $(cat /data/imgcfg/all_images.conf);
|
|||
rm -rf /etc/init/$i.conf || true;
|
||||
done
|
||||
|
||||
# Restarting docker services
|
||||
echo "### Restarting docker services ..."
|
||||
service docker stop
|
||||
sleep 2
|
||||
service docker start
|
||||
sleep 2
|
||||
|
||||
# Setup only T-Pot upstart scripts from images.conf and pull the images
|
||||
for i in $(cat /data/images.conf);
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue