Fixed: Health Check produced warning if Sonarr binaries folder was not writable even when the external script update mechanism was selected.

fixes #964
This commit is contained in:
Taloth Saldono
2015-12-27 20:40:37 +01:00
parent eaf3228bb7
commit 37c621dcdb
2 changed files with 26 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ namespace NzbDrone.Core.HealthCheck.Checks
public override HealthCheck Check()
{
if (OsInfo.IsWindows || _configFileProvider.UpdateAutomatically)
if ((OsInfo.IsWindows || _configFileProvider.UpdateAutomatically) &&
_configFileProvider.UpdateMechanism == UpdateMechanism.BuiltIn)
{
if (!_diskProvider.FolderWritable(_appFolderInfo.StartUpFolder))
{