This commit is contained in:
Marco Ochse
2016-02-08 15:57:27 +01:00
parent 0acc5a4a21
commit 8c94d6d9a5
3 changed files with 13 additions and 8 deletions

View File

@ -4,12 +4,19 @@
# T-Pot #
# Only start the container found in /etc/init/t-pot #
# #
# v0.01 by mo, DTAG, 2016-02-08 #
# v0.02 by mo, DTAG, 2016-02-08 #
########################################################
rm -rf /etc/init/t-pot/*.conf || true
# Delete all T-Pot upstart scripts
for i in $(ls /data/upstart/);
do
rm -rf /etc/init/$i || true;
done
# Setup only T-Pot upstart scripts from images.conf
for i in $(cat /data/images.conf);
do
cp /data/upstart/"$i".conf /etc/init/t-pot/;
cp /data/upstart/"$i".conf /etc/init/;
done
echo Please reboot for the changes to take effect.