From c88007fd0eeb4733ce09b53b0f6ef4ff3891cdf7 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 1 Oct 2021 21:54:16 +0200 Subject: [PATCH] remove redundant chown --- php_fpm/entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php_fpm/entrypoint.sh b/php_fpm/entrypoint.sh index a0934f1..b27361b 100644 --- a/php_fpm/entrypoint.sh +++ b/php_fpm/entrypoint.sh @@ -12,8 +12,6 @@ else curl -Lo "nameless.tar.gz" "https://github.com/NamelessMC/Nameless/archive/${VERSION}.tar.gz" tar -xf "nameless.tar.gz" mv Nameless-*/{,.[^.]}* "/data" - chown -R www-data:www-data /data - chmod 755 -R /data rm -rf /tmp/* # remove some unnecessary files cd /data @@ -31,6 +29,7 @@ else web.config.example \ uploads/placeholder.txt # fix permissions + chown -R www-data:www-data /data find . -type d -exec chmod 750 {} \; find . -type f -exec chmod 640 {} \; set +x