6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-04 19:03:39 +00:00

fix: race condition could cause mkdirs() to fail with "dir exists"

This commit is contained in:
0x29a 2023-07-14 15:02:26 +02:00 committed by Régis Behmo
parent b51fdb46f3
commit df07422adb
2 changed files with 2 additions and 1 deletions

View File

@ -253,6 +253,7 @@ pen-release/palm.master --repo-dir=test-course/course`. (by @regisb)
- [Bugfix] Build openedx-dev Docker image even when the host user is root, for instance on Windows. (by @regisb)
- [Bugfix] Patch nutmeg.1 release with [LTI 1.3 fix](https://github.com/openedx/edx-platform/pull/30716). (by @ormsbee)
- [Improvement] Make it possible to override k8s resources in plugins using `k8s-override` patch. (by @foadlind)
- [Bugfix] Fix a race condition that could prevent a newly provisioned Studio container from starting due to a FileExistsError when creating logs directory.
## v14.0.2 (2022-06-27)

View File

@ -23,7 +23,7 @@ FRONTEND_REGISTER_URL = LMS_ROOT_URL + '/register'
# Create folders if necessary
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
if not os.path.exists(folder):
os.makedirs(folder)
os.makedirs(folder, exist_ok=True)
{{ patch("openedx-cms-common-settings") }}