From 28ec8a4c9b5b03859d0af9c6a5d57ebb0de01da9 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 18 Jan 2022 12:25:34 +0100 Subject: [PATCH] set permissions in one chmod command --- php_fpm/entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/php_fpm/entrypoint.sh b/php_fpm/entrypoint.sh index 11da934..cc30853 100644 --- a/php_fpm/entrypoint.sh +++ b/php_fpm/entrypoint.sh @@ -34,10 +34,7 @@ else SECURITY.md \ phpstan.neon composer install - # fix permissions - # chown -R www-data:www-data . - find . -type d -exec chmod 750 {} \; - find . -type f -exec chmod 640 {} \; + chmod -R ugo-x,u+rwX,go-rw . # Files 600 directories 700 set +x echo "Done!" fi