#8 Ignoring /etc/hosts checks - only seems to work on OSX

This commit is contained in:
cytopia 2016-10-26 21:48:56 +02:00
parent 4d0ff832dc
commit 9b91c4d9b8
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -327,17 +327,18 @@ function checkVirtualHost($vhost)
$error[] = 'Missing <strong>htdocs</strong> directory in: <strong>'.$ENV['HOST_PATH_TO_WWW_DOCROOTS'].'/'.$vhost.'/</strong>';
}
// 2. Check /etc/resolv DNS entry
$output;
if (my_exec('getent hosts '.$domain, $output) !== 0) {
$error[] = 'Missing entry in <strong>/etc/hosts</strong>:<br/><code>127.0.0.1 '.$domain.'</code>';
}
// 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 <strong>/etc/hosts</strong>:<br/><code>127.0.0.1 '.$domain.'</code>';
//}
// 3. Check correct /etc/resolv entry
//$dns_ip = '127.0.0.1';
//if (isset($output[0])) {