From bb6cdfef43a9fdc6ca53385bf588587b885a8a4f Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 2 Dec 2020 18:20:11 +0000 Subject: [PATCH] Don't nag linux x86 users to switch to net core --- src/NzbDrone.Core/HealthCheck/Checks/MonoNotNetCoreCheck.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/HealthCheck/Checks/MonoNotNetCoreCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/MonoNotNetCoreCheck.cs index 2bf724c5a..4ed5c9b6d 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/MonoNotNetCoreCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/MonoNotNetCoreCheck.cs @@ -33,6 +33,12 @@ namespace NzbDrone.Core.HealthCheck.Checks return new HealthCheck(GetType()); } + // Don't warn on linux x86 - we don't build x86 net core + if (OsInfo.IsLinux && RuntimeInformation.ProcessArchitecture == Architecture.X86) + { + return new HealthCheck(GetType()); + } + // Check for BSD var output = _processProvider.StartAndCapture("uname"); if (output?.ExitCode == 0 && MonoUnames.Contains(output?.Lines.First().Content))