tpotce/installer/bin/update-images.sh

23 lines
659 B
Bash
Raw Normal View History

2016-02-08 11:21:03 +00:00
#!/bin/bash
########################################################
# T-Pot #
# Only start the container found in /etc/init/t-pot #
# #
2016-02-08 14:57:27 +00:00
# v0.02 by mo, DTAG, 2016-02-08 #
2016-02-08 11:21:03 +00:00
########################################################
2016-02-08 14:57:27 +00:00
# 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
2016-02-08 11:21:03 +00:00
for i in $(cat /data/images.conf);
do
2016-02-08 14:57:27 +00:00
cp /data/upstart/"$i".conf /etc/init/;
2016-02-08 11:21:03 +00:00
done
2016-02-08 14:57:27 +00:00
2016-02-08 11:21:03 +00:00
echo Please reboot for the changes to take effect.