diff --git a/deploy/docker/entrypoint.sh b/deploy/docker/entrypoint.sh index ffa882c95..df71e67cf 100755 --- a/deploy/docker/entrypoint.sh +++ b/deploy/docker/entrypoint.sh @@ -28,7 +28,7 @@ else fi # We should do this only for folders that have a different owner, since it is an expensive operation -find /home/mediacms.io/ ! \( -user www-data -group $TARGET_GID \) -exec chown www-data:$TARGET_GID {} + +find /home/mediacms.io/mediacms ! \( -path "*.git*" \) -exec chown www-data:$TARGET_GID {} + chmod +x /home/mediacms.io/mediacms/deploy/docker/start.sh /home/mediacms.io/mediacms/deploy/docker/prestart.sh