mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
pkg/debian: Implement better conffile detection
This commit is contained in:
parent
e968bda364
commit
120ca1b89e
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ case "$1" in
|
|||
fi
|
||||
|
||||
# Check if a config file exists
|
||||
if ! test -e $CONF_DIR/*.conf; then
|
||||
if [ ! "$(ls -A $CONF_DIR/*.conf 2> /dev/null)" ]; then
|
||||
log_failure_msg "There aren't any configuration files in $CONF_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue