diff --git a/installer/data-downloader/backend/storage.py b/installer/data-downloader/backend/storage.py index 7c18feb..018a80d 100644 --- a/installer/data-downloader/backend/storage.py +++ b/installer/data-downloader/backend/storage.py @@ -37,7 +37,9 @@ def _write_file(self, payload: dict) -> None: with NamedTemporaryFile("w", delete=False, dir=str(self.path.parent), encoding="utf-8") as tmp: json.dump(payload, tmp, indent=2, ensure_ascii=True) tmp.flush() - Path(tmp.name).replace(self.path) + tmp_path = Path(tmp.name) + tmp_path.chmod(0o664) + tmp_path.replace(self.path) class RunsRepository: