From e2edab636482080ecf8b8c48ca4bf14b7d3cc411 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 16 Jun 2018 15:43:33 -0400 Subject: [PATCH] Add trailing slash to VHOST_DIR when building vhosts_all.conf If VHOST_DIR is a symbolic link to another folder, no files will be found, resulting in an empty vhosts_all.conf. A trailing slash ensures find will properly resolve the symbolic link before searching. --- src/update_domains.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update_domains.sh b/src/update_domains.sh index 2b727390..feb2f923 100755 --- a/src/update_domains.sh +++ b/src/update_domains.sh @@ -129,7 +129,7 @@ if [ ! -z "$(cat "$RELOAD_WEB")" ] ; then ( echo "###BEGIN OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###" - find "$VHOST_DIR" -mindepth 2 -type f -iname "*.conf" -print0 | xargs -0 cat + find "$VHOST_DIR"/ -mindepth 2 -type f -iname "*.conf" -print0 | xargs -0 cat echo "###END OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###" ) > "$tempo"