Skip to content
Permalink
Browse files

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.
  • Loading branch information...
kienanstewart authored and vincib committed Jun 16, 2018
1 parent 3525041 commit e2edab636482080ecf8b8c48ca4bf14b7d3cc411
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"

0 comments on commit e2edab6

Please sign in to comment.
You can’t perform that action at this time.