2022-03-06 02:54:51 +01:00
|
|
|
libreqr_apply_filesystem_permissions() {
|
|
|
|
find "$final_path" -type f -exec chmod 400 "{}" +
|
|
|
|
find "$final_path" -type f -exec chown www-data:www-data "{}" +
|
|
|
|
find "$final_path" -type d -exec chmod 110 "{}" +
|
|
|
|
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 "{}" +
|
2022-06-02 18:31:38 +02:00
|
|
|
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 "{}" +
|
2022-03-06 02:54:51 +01:00
|
|
|
chmod 350 "$final_path"/css
|
|
|
|
chown $app:www-data "$final_path"/css
|
|
|
|
}
|