From 67b803145317d2ebf6f8557d3f7acc5340b1c626 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Thu, 21 Jul 2016 17:42:53 +0200 Subject: [PATCH] old indices were not deleted escaping timestring format fixes it --- installer/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/install.sh b/installer/install.sh index f54e3551..88b18a64 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -264,19 +264,19 @@ fuECHO "### Adding cronjobs." tee -a /etc/crontab < /dev/tty2 +*/2 * * * * root status.sh > /dev/tty2 # Check if containers and services are up -*/5 * * * * root check.sh +*/5 * * * * root check.sh # Check if updated images are available and download them 27 1 * * * root for i in \$(cat /data/images.conf); do docker pull dtagdevsec/\$i:latest1603; done # Restart docker service and containers -27 3 * * * root dcres.sh +27 3 * * * root dcres.sh # Delete elastic indices older than 90 days (kibana index is omitted by default) -27 4 * * * root docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete indices --older-than 90 --time-unit days --timestring '%Y.%m.%d'' +27 4 * * * root docker exec elk bash -c '/usr/local/bin/curator --host 127.0.0.1 delete indices --older-than 90 --time-unit days --timestring \%Y.\%m.\%d' # Update IP and erase check.lock if it exists 27 15 * * * root /etc/rc.local