1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pytition_ynh.git synced 2024-09-03 20:16:08 +02:00

Fix mediaroot permissions

This allows user to upload pictures in TinyMCE editors.
The newly created files and directories, under mediaroot/,
will allow read access to www-data (nginx) while still
being owned by __APP__:__APP__
This commit is contained in:
Yann Sionneau 2022-12-04 15:59:35 +01:00 committed by Salamandar
parent 9741a7abb0
commit ebdf87c819

View file

@ -94,6 +94,8 @@ mkdir -p "$final_path/mediaroot"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
setfacl -dR -m g:"www-data":rX -m u:$app:rwX "$final_path/mediaroot/"
setfacl -R -m g:"www-data":rX -m u:$app:rwX "$final_path/mediaroot/"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION