Skip to content

Commit

Permalink
pkg/debian: Implement better conffile detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter Lexis committed Sep 20, 2013
1 parent e968bda commit 120ca1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logstash.sysv.debian
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 120ca1b

Please sign in to comment.