From 6ce4c77b685d0007c69db05cb8bb01bd70e464ff Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Fri, 20 Sep 2024 12:48:22 +0300 Subject: [PATCH] fix: speed up Docker start time --- deploy/docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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