mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
ignore check on Mac (#17486)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package org.graylog.datanode.bootstrap.preflight;
|
||||
|
||||
import org.apache.commons.exec.OS;
|
||||
import org.graylog2.bootstrap.preflight.PreflightCheck;
|
||||
import org.graylog2.bootstrap.preflight.PreflightCheckException;
|
||||
import org.slf4j.Logger;
|
||||
@@ -35,6 +36,10 @@ public class OpenSearchPreconditionsCheck implements PreflightCheck {
|
||||
|
||||
@Override
|
||||
public void runCheck() throws PreflightCheckException {
|
||||
if (OS.isFamilyMac()) {
|
||||
return; // don't throw an exception on Mac dev machines
|
||||
}
|
||||
|
||||
ProcessBuilder builder = new ProcessBuilder().redirectErrorStream(true);
|
||||
builder.command("/sbin/sysctl", "-n", "vm.max_map_count");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user