mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.88k stars 534 forks source link

fix #943 #1052

Closed thau0x01 closed 2 months ago

thau0x01 commented 2 months ago

Description

Fixes issue #943 and other issues related to chown bug while running the containers on macos.

Updated the deploy/docker/entrypoint.sh file to ignore the .git directory mounted by the volume into the application's root dir. This avoids the permission errors mentioned in several issues.

This is the new command.

find /home/mediacms.io/ ! \( -path "*.git*" \) -and ! \( -user www-data -group $TARGET_GID \) -exec chown www-data:$TARGET_GID {} +

Steps

Pre-deploy N/A Post-deploy N/A

mgogoulos commented 2 months ago

Thanks a lot! I will merge this but then will merge another PR that simplifies the find command even further. Would be great if you can test it