From f18ad21b48ac594d194a2aad357b2312c2aa92b9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 14 Apr 2015 23:15:43 -0700 Subject: [PATCH] Fixed: Set permissions on Sonarr.app (OS X) --- src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs b/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs index 52c7a3595..1e6a53821 100644 --- a/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs +++ b/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs @@ -91,6 +91,12 @@ namespace NzbDrone.Update.UpdateEngine _logger.Info("Copying new files to target folder"); _diskProvider.CopyFolder(_appFolderInfo.GetUpdatePackageFolder(), installationFolder); + + // Set executable flag on SOnarr app + if (OsInfo.IsOsx) + { + _diskProvider.SetPermissions(Path.Combine(installationFolder, "Sonarr"), "0755", null, null); + } } catch (Exception e) {