New: Log warning if less than 1 GB free space during update

* New: Log warning if less than 1 GB free space during update

(cherry picked from commit e66ba84fc0b5b120dd4e87f6b8ae1b3c038ee72b)

---------

Co-authored-by: Mark McDowall <mark@mcdowall.ca>
pull/4509/head
servarr[bot] 3 months ago committed by GitHub
parent 8db7f948b1
commit a8618fcf49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -107,6 +107,11 @@ namespace NzbDrone.Core.Update
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
if (_diskProvider.GetTotalSize(updateSandboxFolder) < 1.Gigabytes())
{
_logger.Warn("Temporary location '{0}' has less than 1 GB free space, Lidarr may not be able to update itself.", updateSandboxFolder);
}
var packageDestination = Path.Combine(updateSandboxFolder, updatePackage.FileName);
if (_diskProvider.FolderExists(updateSandboxFolder))

Loading…
Cancel
Save