Merge pull request #314 from udanieli/fix-find_vhosts-filter

fix OR conditions in find_vhosts(), fixes, #313
This commit is contained in:
Mitchell Krog 2019-09-10 13:33:41 +02:00 committed by GitHub
commit b9398a09a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ check_config() {
find_vhosts() { find_vhosts() {
local ans= local ans=
FILE_LIST=$(find $VHOST_DIR -type f -or -type l -name "*.$VHOST_EXT") FILE_LIST=$(find $VHOST_DIR \( -type f -or -type l \) -name "*.$VHOST_EXT")
if [ -z "$FILE_LIST" ]; then if [ -z "$FILE_LIST" ]; then
find $VHOST_DIR -type f find $VHOST_DIR -type f