mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-24 22:35:49 -04:00
Support for setting uid/gid on *nix systems
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user