From d47486811678e5f2125bf597edbfac1822376175 Mon Sep 17 00:00:00 2001 From: Glax Date: Sun, 18 May 2025 22:14:51 +0200 Subject: [PATCH] Fix missing Permissions for covers --- API/Schema/Jobs/DownloadSingleChapterJob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Schema/Jobs/DownloadSingleChapterJob.cs b/API/Schema/Jobs/DownloadSingleChapterJob.cs index ed9b0c7..650ad55 100644 --- a/API/Schema/Jobs/DownloadSingleChapterJob.cs +++ b/API/Schema/Jobs/DownloadSingleChapterJob.cs @@ -167,7 +167,7 @@ public class DownloadSingleChapterJob : Job string newFilePath = Path.Join(publicationFolder, $"cover.{Path.GetFileName(fileInCache).Split('.')[^1]}" ); File.Copy(fileInCache, newFilePath, true); if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - File.SetUnixFileMode(newFilePath, GroupRead | GroupWrite | UserRead | UserWrite); + File.SetUnixFileMode(newFilePath, GroupRead | GroupWrite | UserRead | UserWrite | OtherRead | OtherWrite); Log.Debug($"Copied cover from {fileInCache} to {newFilePath}"); }