diff --git a/src/NzbDrone.Common/EnvironmentInfo/OsInfo.cs b/src/NzbDrone.Common/EnvironmentInfo/OsInfo.cs
index 09035be21..aba718098 100644
--- a/src/NzbDrone.Common/EnvironmentInfo/OsInfo.cs
+++ b/src/NzbDrone.Common/EnvironmentInfo/OsInfo.cs
@@ -97,16 +97,14 @@ namespace NzbDrone.Common.EnvironmentInfo
}
else
{
- return IsMusl() ? Os.LinuxMusl : Os.Linux;
+#if ISMUSL
+ return Os.LinuxMusl;
+#else
+ return Os.Linux;
+#endif
}
}
- private static bool IsMusl()
- {
- var output = RunAndCapture("ldd", "/bin/ls");
- return output.Contains("libc.musl");
- }
-
private static string RunAndCapture(string filename, string args)
{
Process p = new Process();
diff --git a/src/NzbDrone.Common/Readarr.Common.csproj b/src/NzbDrone.Common/Readarr.Common.csproj
index 614911617..7124c1636 100644
--- a/src/NzbDrone.Common/Readarr.Common.csproj
+++ b/src/NzbDrone.Common/Readarr.Common.csproj
@@ -2,6 +2,7 @@
net462;netcoreapp3.1
en
+ ISMUSL