From 9b91c4d9b8f5159d0b98c09da5ad2d9e2797d806 Mon Sep 17 00:00:00 2001 From: cytopia Date: Wed, 26 Oct 2016 21:48:56 +0200 Subject: [PATCH] #8 Ignoring /etc/hosts checks - only seems to work on OSX --- .devilbox/www/include/functions.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.devilbox/www/include/functions.php b/.devilbox/www/include/functions.php index e22122cc..7a8700a2 100644 --- a/.devilbox/www/include/functions.php +++ b/.devilbox/www/include/functions.php @@ -327,17 +327,18 @@ function checkVirtualHost($vhost) $error[] = 'Missing htdocs directory in: '.$ENV['HOST_PATH_TO_WWW_DOCROOTS'].'/'.$vhost.'/'; } - - // 2. Check /etc/resolv DNS entry - $output; - if (my_exec('getent hosts '.$domain, $output) !== 0) { - $error[] = 'Missing entry in /etc/hosts:
127.0.0.1 '.$domain.''; - } - - // Temporarily comment out due to: // https://github.com/cytopia/devilbox/issues/8 // + + + // 2. Check /etc/resolv DNS entry + //$output; + //if (my_exec('getent hosts '.$domain, $output) !== 0) { + // $error[] = 'Missing entry in /etc/hosts:
127.0.0.1 '.$domain.''; + //} + + // 3. Check correct /etc/resolv entry //$dns_ip = '127.0.0.1'; //if (isset($output[0])) {