mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 21:12:11 +00:00
Daily check for latest images from dockerhub
This commit is contained in:
parent
b5313b1100
commit
19ff7a994c
1 changed files with 8 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
# T-Pot Community Edition post install script #
|
# T-Pot Community Edition post install script #
|
||||||
# Ubuntu server 14.04, x64 #
|
# Ubuntu server 14.04, x64 #
|
||||||
# #
|
# #
|
||||||
# v0.44 by mo, DTAG, 2015-02-17 #
|
# v0.45 by mo, DTAG, 2015-02-19 #
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
# Let's make sure there is a warning if running for a second time
|
# Let's make sure there is a warning if running for a second time
|
||||||
|
@ -96,8 +96,11 @@ tee -a /etc/crontab <<EOF
|
||||||
# Check if containers and services are up
|
# Check if containers and services are up
|
||||||
*/5 * * * * root /usr/bin/check.sh
|
*/5 * * * * root /usr/bin/check.sh
|
||||||
|
|
||||||
|
# Check if updated images are available and download them
|
||||||
|
27 1 * * * root for i in $(cat /data/images.conf); do /usr/bin/docker pull dtagdevsec/$i:latest; done
|
||||||
|
|
||||||
# Restart docker service and containers
|
# Restart docker service and containers
|
||||||
7 3 * * * root /usr/bin/dcres.sh
|
27 3 * * * root /usr/bin/dcres.sh
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Let's take care of some files and permissions
|
# Let's take care of some files and permissions
|
||||||
|
@ -120,7 +123,7 @@ cp -R /root/tpotce/etc/issue /etc/
|
||||||
cp -R /root/tpotce/home/* /home/tsec/
|
cp -R /root/tpotce/home/* /home/tsec/
|
||||||
cp -R /root/tpotce/upstart/* /etc/init/
|
cp -R /root/tpotce/upstart/* /etc/init/
|
||||||
|
|
||||||
# Let's modify some ownership / access rights
|
# Let's take care of some files and permissions
|
||||||
chmod 660 -R /data
|
chmod 660 -R /data
|
||||||
chown tpot:tpot -R /data
|
chown tpot:tpot -R /data
|
||||||
chown tsec:tsec /home/tsec/*.sh
|
chown tsec:tsec /home/tsec/*.sh
|
||||||
|
|
Loading…
Reference in a new issue