[functions] ParseNginx: Ignore empty included wildcards

Its ok to have empty directories included. We should not output errors with
lsbinary unable to find anything there.
This commit is contained in:
Kepi 2020-07-02 22:22:34 +02:00
parent de18ddc2c0
commit a2e752a8db
1 changed files with 1 additions and 1 deletions

View File

@ -2306,7 +2306,7 @@
# "include sites-enabled/*.conf" # "include sites-enabled/*.conf"
elif [ $(echo ${VALUE} | grep -F -c "*.conf") -gt 0 ]; then elif [ $(echo ${VALUE} | grep -F -c "*.conf") -gt 0 ]; then
if [ "$(echo ${VALUE} | ${CUTBINARY} -c1)" != "/" ]; then VALUE=${CONFIG_FILE%nginx.conf}; fi if [ "$(echo ${VALUE} | ${CUTBINARY} -c1)" != "/" ]; then VALUE=${CONFIG_FILE%nginx.conf}; fi
for FOUND_CONF in $(ls ${VALUE%;*}); do for FOUND_CONF in $(ls ${VALUE%;*} 2> /dev/null); do
FOUND=0 FOUND=0
for CONF in ${NGINX_CONF_FILES}; do for CONF in ${NGINX_CONF_FILES}; do
if [ "${CONF}" = "${FOUND_CONF}" ]; then FOUND=1; LogText "Found this file already in our configuration files array, not adding to queue"; fi if [ "${CONF}" = "${FOUND_CONF}" ]; then FOUND=1; LogText "Found this file already in our configuration files array, not adding to queue"; fi