add --NoUpdates option

This commit is contained in:
kaso17
2018-02-09 17:30:07 +01:00
parent abb644eeb8
commit ccf6780e6d
3 changed files with 11 additions and 0 deletions

View File

@@ -75,6 +75,11 @@ namespace Jackett.Services
private async Task CheckForUpdates()
{
var config = Engine.ServerConfig;
if (config.RuntimeSettings.NoUpdates)
{
logger.Info($"Updates are disabled via --NoUpdates.");
return;
}
if (config.UpdateDisabled && !forceupdatecheck)
{
logger.Info($"Skipping update check as it is disabled.");