Handle gentoo's apache cofnig check output https://www.virtualmin.com/node/41961

This commit is contained in:
Jamie Cameron
2016-09-08 20:04:49 -07:00
parent b2d4380577
commit 2f5ee3eb33

View File

@@ -1393,7 +1393,7 @@ if ($httpd_modules{'core'} >= 1.301) {
}
}
local $out = &backquote_command("$cmd 2>&1");
if ($out && $out !~ /syntax\s+ok/i) {
if ($out && $out !~ /(syntax|Checking).*\s+ok/i) {
return $out;
}
}