Curator in a bash script

Hello everyone,

Coming here today because i'm facing a problem with curator in a bash script to execute multiple action file.

Here body's script :

PATH_CONFIG="/applis/curator/config/curator-integration.yml"
PATH_ACTION="/applis/curator/actions/param_actions_2.lst"
PATH_INDEX="/applis/curator/index"

FILE=($(cat $PATH_ACTION))

for i in "${FILE[@]}";
do
/opt/elasticsearch-curator/curator "--config" $PATH_CONFIG $i
done

Curator error returned :

Usage: curator [OPTIONS] ACTION_FILE

" does not exist.lue for "action_file": Path "/applis/curator/index/coveauth/mensuel/maaf-coveauth-index-close.yml
Usage: curator [OPTIONS] ACTION_FILE

" does not exist.lue for "action_file": Path "/applis/curator/index/coveauth/mensuel/maaf-coveauth-index-delete.yml
Usage: curator [OPTIONS] ACTION_FILE

" does not exist.lue for "action_file": Path "/applis/curator/index/reseau/journalier/maaf-bluecoat-index-close.yml
Usage: curator [OPTIONS] ACTION_FILE

" does not exist.lue for "action_file": Path "/applis/curator/index/reseau/journalier/maaf-bluecoat-index-delete.yml

Any of my files/files path are good, right on them are good too, if i replace all vars by path, it work.. so i'm in trouble and i don't know how to solve this.

I'm open to any suggestion if someone encountered this kind of errors..

Thanks in advance for reading.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.