Fixed: Regression causing updater to fail (manual update required if on 3.0.3.971, see forums)

This commit is contained in:
Taloth Saldono 2020-10-11 19:26:33 +02:00 committed by Qstick
parent 2c22ed2912
commit c92b254bb7
3 changed files with 30 additions and 4 deletions

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using NLog;
using NzbDrone.Common.Disk;
@ -90,6 +90,12 @@ namespace NzbDrone.Update.UpdateEngine
Verify(installationFolder, processId);
if (installationFolder.EndsWith(@"\bin\Lidarr") || installationFolder.EndsWith(@"/bin/Lidarr"))
{
installationFolder = installationFolder.GetParentPath();
_logger.Info("Fixed Installation Folder: {0}", installationFolder);
}
var appType = _detectApplicationType.GetAppType();
_processProvider.FindProcessByName(ProcessProvider.LIDARR_CONSOLE_PROCESS_NAME);