From 55b671b9d2cc01764b706f8ea088c0fc18c9bbda Mon Sep 17 00:00:00 2001 From: Miraty Date: Thu, 2 Jun 2022 18:31:38 +0200 Subject: [PATCH] Revert "Slightly factorize libreqr_apply_filesystem_permissions()" This reverts commit 91505ec5bbc2fa1e624e36b621bf4c91fda5951f. --- scripts/_common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 42f9bb1..f56b2c6 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,8 +5,10 @@ libreqr_apply_filesystem_permissions() { find "$final_path" -type d -exec chown $app:www-data "{}" + find "$final_path" -type f -name "*.php" -exec chmod 400 "{}" + find "$final_path" -type f -name "*.php" -exec chown $app:$app "{}" + - find "$final_path" -type f -name "*.less" -or -name "*.css" -exec chmod 440 "{}" + - find "$final_path" -type f -name "*.less" -or -name "*.css" -exec chown $app:www-data "{}" + + find "$final_path" -type f -name "*.css" -exec chmod 440 "{}" + + find "$final_path" -type f -name "*.css" -exec chown $app:www-data "{}" + + find "$final_path" -type f -name "*.less" -exec chmod 440 "{}" + + find "$final_path" -type f -name "*.less" -exec chown $app:www-data "{}" + chmod 350 "$final_path"/css chown $app:www-data "$final_path"/css }