mirror of
https://github.com/Readarr/Readarr
synced 2025-12-07 08:52:42 +01:00
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>
This commit is contained in:
parent
261b0f398b
commit
0fb8ab2280
1 changed files with 5 additions and 0 deletions
|
|
@ -107,6 +107,11 @@ private bool InstallUpdate(UpdatePackage updatePackage)
|
|||
|
||||
var updateSandboxFolder = _appFolderInfo.GetUpdateSandboxFolder();
|
||||
|
||||
if (_diskProvider.GetTotalSize(updateSandboxFolder) < 1.Gigabytes())
|
||||
{
|
||||
_logger.Warn("Temporary location '{0}' has less than 1 GB free space, Readarr may not be able to update itself.", updateSandboxFolder);
|
||||
}
|
||||
|
||||
var packageDestination = Path.Combine(updateSandboxFolder, updatePackage.FileName);
|
||||
|
||||
if (_diskProvider.FolderExists(updateSandboxFolder))
|
||||
|
|
|
|||
Loading…
Reference in a new issue