curator-cron 288 Bytes
Newer Older
1
2
3
4
5
#!/bin/sh

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

# If you don't set a locale, curator doesn't run.
6
export LC_ALL=C.UTF-8 LANG=C.UTF-8
7
8
9
10
11
12

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

exit 0