|
|
@ -125,10 +125,11 @@ namespace NzbDrone.Update.UpdateEngine
|
|
|
|
_logger.Info("Copying new files to target folder");
|
|
|
|
_logger.Info("Copying new files to target folder");
|
|
|
|
_diskTransferService.MirrorFolder(_appFolderInfo.GetUpdatePackageFolder(), installationFolder);
|
|
|
|
_diskTransferService.MirrorFolder(_appFolderInfo.GetUpdatePackageFolder(), installationFolder);
|
|
|
|
|
|
|
|
|
|
|
|
// Set executable flag on Lidarr app
|
|
|
|
// Set executable flag on Lidarr app and bundled fpcalc
|
|
|
|
if (OsInfo.IsOsx || (OsInfo.IsLinux && PlatformInfo.IsNetCore))
|
|
|
|
if (OsInfo.IsOsx || (OsInfo.IsLinux && PlatformInfo.IsNetCore))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_diskProvider.SetFilePermissions(Path.Combine(installationFolder, "Lidarr"), "755", null);
|
|
|
|
_diskProvider.SetFilePermissions(Path.Combine(installationFolder, "Lidarr"), "755", null);
|
|
|
|
|
|
|
|
_diskProvider.SetFilePermissions(Path.Combine(installationFolder, "fpcalc"), "755", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|