Support for setting uid/gid on *nix systems

This commit is contained in:
Mark McDowall 2014-01-30 21:24:32 -08:00
parent 3ed37997c5
commit 7218772b32
10 changed files with 93 additions and 17 deletions

View file

@ -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;
}
}
}