mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Support for setting uid/gid on *nix systems
This commit is contained in:
parent
3ed37997c5
commit
7218772b32
10 changed files with 93 additions and 17 deletions
|
@ -152,7 +152,7 @@ namespace NzbDrone.Core.MediaFiles
|
|||
|
||||
try
|
||||
{
|
||||
_diskProvider.SetPermissions(path, permissions);
|
||||
_diskProvider.SetPermissions(path, permissions, _configService.ChownUser, _configService.ChownGroup);
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
|
@ -162,6 +162,10 @@ namespace NzbDrone.Core.MediaFiles
|
|||
_logger.Debug("Unable to apply permissions to: ", path);
|
||||
_logger.TraceException(ex.Message, ex);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue