mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Mono 5.8 or greater is now required to start Jackett
This commit is contained in:
@@ -143,23 +143,12 @@ namespace Jackett.Services
|
|||||||
|
|
||||||
var monoVersionO = new Version(monoVersion.Split(' ')[0]);
|
var monoVersionO = new Version(monoVersion.Split(' ')[0]);
|
||||||
|
|
||||||
if (monoVersionO.Major < 4)
|
|
||||||
{
|
|
||||||
logger.Error("Your mono version is to old (mono 3 is no longer supported). Please update to the latest version from http://www.mono-project.com/download/");
|
|
||||||
Engine.Exit(2);
|
|
||||||
}
|
|
||||||
else if (monoVersionO.Major == 4 && monoVersionO.Minor == 2)
|
|
||||||
{
|
|
||||||
var notice = "mono version 4.2.* is known to cause problems with Jackett. If you experience any problems please try updating to the latest mono version from http://www.mono-project.com/download/ first.";
|
|
||||||
_notices.Add(notice);
|
|
||||||
logger.Error(notice);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (monoVersionO.Major < 5 || (monoVersionO.Major == 5 && monoVersionO.Minor < 8))
|
if (monoVersionO.Major < 5 || (monoVersionO.Major == 5 && monoVersionO.Minor < 8))
|
||||||
{
|
{
|
||||||
string notice = "A minimum Mono version of 5.8 is required. Please update to the latest version from http://www.mono-project.com/download/";
|
string notice = "A minimum Mono version of 5.8 is required. Please update to the latest version from http://www.mono-project.com/download/";
|
||||||
_notices.Add(notice);
|
_notices.Add(notice);
|
||||||
logger.Error(notice);
|
logger.Error(notice);
|
||||||
|
Engine.Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Reference in New Issue
Block a user