mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
take care of check.lock
on some installations the check.lock file will not be removed. once a day it will be removed now.
This commit is contained in:
parent
a063925c36
commit
537f0c39e6
1 changed files with 4 additions and 1 deletions
|
@ -91,7 +91,7 @@ fuECHO "### Adding cronjobs."
|
||||||
tee -a /etc/crontab <<EOF
|
tee -a /etc/crontab <<EOF
|
||||||
|
|
||||||
# Show running containers every 60s via /dev/tty2
|
# Show running containers every 60s via /dev/tty2
|
||||||
*/1 * * * * root /usr/bin/status.sh > /dev/tty2
|
*/2 * * * * root /usr/bin/status.sh > /dev/tty2
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -104,6 +104,9 @@ tee -a /etc/crontab <<EOF
|
||||||
|
|
||||||
# Delete elastic indices older than 30 days
|
# Delete elastic indices older than 30 days
|
||||||
27 4 * * * root /usr/bin/docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete --older-than 30'
|
27 4 * * * root /usr/bin/docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete --older-than 30'
|
||||||
|
|
||||||
|
# Update IP and erase check.lock if it exists
|
||||||
|
27 15 * * * root /etc/rc.local
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Let's take care of some files and permissions
|
# Let's take care of some files and permissions
|
||||||
|
|
Loading…
Reference in a new issue