curator-cron 279 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

test -x /usr/bin/curator || exit 0

# If you don't set a locale, curator doesn't run.
export LC_ALL=en_US.UTF-8

find /etc/elasticsearch/actions -type f -name 'maint_*.yml' \
    | xargs -n 1 curator --config=/etc/elasticsearch/curator.yml
    >/dev/null 2>&1

exit 0