pkg/debian: Implement better conffile detection

This commit is contained in:
Pieter Lexis 2013-09-18 18:10:23 +02:00
parent e968bda364
commit 120ca1b89e

View file

@ -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