From: Mark Wooding Date: Sat, 25 Jan 2014 13:48:19 +0000 (+0000) Subject: vhost.m4: Don't crash if `domains.conf' doesn't exist. X-Git-Url: https://git.distorted.org.uk/~mdw/exim-config/commitdiff_plain/df2d1f18b2d9abb8008316439f1b0dcb70042923 vhost.m4: Don't crash if `domains.conf' doesn't exist. --- diff --git a/vhost.m4 b/vhost.m4 index 07ca79e..5e81f56 100644 --- 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