From a63ab1ddd6f9345c81779ed04c76fc11ba29279b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 6 Feb 2024 16:47:20 -0800 Subject: [PATCH] Fixed: Don't use sub folder to check for free disk space for update (cherry picked from commit f722d49b3a9efefa65bef1b24d90be9332ca62ea) Closes #9748 --- src/NzbDrone.Core/Update/InstallUpdateService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Update/InstallUpdateService.cs b/src/NzbDrone.Core/Update/InstallUpdateService.cs index c79e02f2c..3c655cc67 100644 --- a/src/NzbDrone.Core/Update/InstallUpdateService.cs +++ b/src/NzbDrone.Core/Update/InstallUpdateService.cs @@ -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, 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);