Skip to content

Commit

Permalink
Fixed: Don't use sub folder to check for free disk space for update
Browse files Browse the repository at this point in the history
Closes #6478
  • Loading branch information
markus101 committed Feb 7, 2024
1 parent cac97c0 commit f722d49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/NzbDrone.Core/Update/InstallUpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ private bool InstallUpdate(UpdatePackage updatePackage)
return false;
}

var tempFolder = _appFolderInfo.TempFolder;
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();

if (_diskProvider.GetTotalSize(updateSandboxFolder) < 1.Gigabytes())
if (_diskProvider.GetTotalSize(tempFolder) < 1.Gigabytes())
{
_logger.Warn("Temporary location '{0}' has less than 1 GB free space, Sonarr may not be able to update itself.", updateSandboxFolder);
_logger.Warn("Temporary location '{0}' has less than 1 GB free space, Sonarr may not be able to update itself.", tempFolder);
}

var packageDestination = Path.Combine(updateSandboxFolder, updatePackage.FileName);
Expand Down

0 comments on commit f722d49

Please sign in to comment.