vhost.m4: Don't crash if `domains.conf' doesn't exist.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 25 Jan 2014 13:48:19 +0000 (13:48 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 25 Jan 2014 13:48:19 +0000 (13:48 +0000)
vhost.m4

index 07ca79e..5e81f56 100644 (file)
--- a/vhost.m4
+++ b/vhost.m4
@@ -22,7 +22,9 @@
 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 m4_define(<:VHOST:>,
-       <:domains = partial0-lsearch; CONF_sysconf_dir/domains.conf
+       <:domains = ${if exists{CONF_sysconf_dir/domains.conf} \
+                        {partial0-lsearch; CONF_sysconf_dir/domains.conf} \
+                        {}}
        condition = DOMKV($1):>)
 m4_define(<:VHOST_FILTER:>,
        <:FILTER_BASE