mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
very basic installation stuff
This commit is contained in:
@ -4,9 +4,11 @@
|
||||
# T-Pot #
|
||||
# Only start the containers found in /etc/init/ #
|
||||
# #
|
||||
# v16.03.2 by mo, DTAG, 2016-04-20 #
|
||||
# v16.10.0 by mo, DTAG, 2016-05-12 #
|
||||
########################################################
|
||||
|
||||
echo "### I still need some dev-work!"
|
||||
|
||||
# Make sure not to interrupt a check
|
||||
while true
|
||||
do
|
||||
@ -33,19 +35,21 @@ done
|
||||
touch /var/run/check.lock
|
||||
|
||||
# Stop T-Pot services and delete all T-Pot upstart scripts
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
echo "### Stopping T-Pot services and cleaning up."
|
||||
for i in $(cat /data/imgcfg/all_images.conf);
|
||||
do
|
||||
service $i stop
|
||||
systemctl stop $i
|
||||
sleep 2
|
||||
rm -rf /etc/init/$i.conf || true;
|
||||
done
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
# Restarting docker services
|
||||
echo "### Restarting docker services ..."
|
||||
service docker stop
|
||||
systemctl stop docker
|
||||
sleep 2
|
||||
service docker start
|
||||
systemctl start docker
|
||||
sleep 2
|
||||
|
||||
# Setup only T-Pot upstart scripts from images.conf and pull the images
|
||||
|
Reference in New Issue
Block a user