Slightly factorize libreqr_apply_filesystem_permissions()

This commit is contained in:
Miraty 2022-06-02 00:35:18 +02:00
parent 8a67c2f4ca
commit 91505ec5bb
1 changed files with 2 additions and 4 deletions

View File

@ -5,10 +5,8 @@ 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 "*.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 "{}" +
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 "{}" +
chmod 350 "$final_path"/css
chown $app:www-data "$final_path"/css
}