mirror of
https://github.com/Sonarr/Sonarr
synced 2026-04-13 08:41:30 +02:00
New: Log warning if less than 1 GB free space during update
Closes #6385
This commit is contained in:
parent
c0b30a5028
commit
e66ba84fc0
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, Sonarr 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