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:
parent
9741a7abb0
commit
ebdf87c819
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue