tpotce/installer/bin/update-images.sh
2016-02-08 15:57:27 +01:00

22 lines
659 B
Bash
Executable file

#!/bin/bash
########################################################
# T-Pot #
# Only start the container found in /etc/init/t-pot #
# #
# v0.02 by mo, DTAG, 2016-02-08 #
########################################################
# 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/;
done
echo Please reboot for the changes to take effect.