mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed post-install update check not running
This commit is contained in:
parent
67e97f7aee
commit
eea6be459d
@ -293,14 +293,6 @@ public void Handle(ApplicationStartingEvent message)
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Don't do a prestartup update check unless BuiltIn update is enabled
|
|
||||||
if (_configFileProvider.UpdateAutomatically ||
|
|
||||||
_configFileProvider.UpdateMechanism != UpdateMechanism.BuiltIn ||
|
|
||||||
_deploymentInfoProvider.IsExternalUpdateMechanism)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var updateMarker = Path.Combine(_appFolderInfo.AppDataFolder, "update_required");
|
var updateMarker = Path.Combine(_appFolderInfo.AppDataFolder, "update_required");
|
||||||
if (!_diskProvider.FileExists(updateMarker))
|
if (!_diskProvider.FileExists(updateMarker))
|
||||||
{
|
{
|
||||||
@ -309,6 +301,15 @@ public void Handle(ApplicationStartingEvent message)
|
|||||||
|
|
||||||
_logger.Debug("Post-install update check requested");
|
_logger.Debug("Post-install update check requested");
|
||||||
|
|
||||||
|
// Don't do a prestartup update check unless BuiltIn update is enabled
|
||||||
|
if (!_configFileProvider.UpdateAutomatically ||
|
||||||
|
_configFileProvider.UpdateMechanism != UpdateMechanism.BuiltIn ||
|
||||||
|
_deploymentInfoProvider.IsExternalUpdateMechanism)
|
||||||
|
{
|
||||||
|
_logger.Debug("Built-in updater disabled, skipping post-install update check");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var latestAvailable = _checkUpdateService.AvailableUpdate();
|
var latestAvailable = _checkUpdateService.AvailableUpdate();
|
||||||
if (latestAvailable == null)
|
if (latestAvailable == null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user