1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 01:42:35 +01:00

Fixed: Don't use sub folder to check for free disk space for update

(cherry picked from commit f722d49b3a9efefa65bef1b24d90be9332ca62ea)

Closes #9748
This commit is contained in:
Mark McDowall 2024-02-06 16:47:20 -08:00 committed by Bogdan
parent 41cb020ff0
commit a63ab1ddd6

View File

@ -105,11 +105,12 @@ private bool InstallUpdate(UpdatePackage updatePackage)
return false; return false;
} }
var tempFolder = _appFolderInfo.TempFolder;
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder(); 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, Radarr may not be able to update itself.", updateSandboxFolder); _logger.Warn("Temporary location '{0}' has less than 1 GB free space, Radarr may not be able to update itself.", tempFolder);
} }
var packageDestination = Path.Combine(updateSandboxFolder, updatePackage.FileName); var packageDestination = Path.Combine(updateSandboxFolder, updatePackage.FileName);