init script for logstash-web has test error

Description

When i use many .conf files in config.d, init script test has a error:

+ test -e /etc/logstash/conf.d/perf4j_parser.conf /etc/logstash/conf.d/syslog_parser.conf
/etc/init.d/logstash-web: line 103: test: /etc/logstash/conf.d/perf4j_parser.conf: binary operator expected

i copy logstash init example and works fine:

+ if [ ! "$(ls -A $CONF_DIR/*.conf 2> /dev/null)" ]; then

  • if ! test -e $CONF_DIR/*.conf; then

Environment

None

Status

Assignee

Logstash Developers

Reporter

Fábio Gomes dos Santos

Labels

None

Fix versions

Affects versions

Priority

Configure