mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Ensure files belong to app's user even after Composer commands
This commit is contained in:
parent
60009c3971
commit
588a76c27a
1 changed files with 5 additions and 0 deletions
|
@ -244,6 +244,11 @@ ynh_app_setting_set $app project_version "$project_version"
|
|||
ynh_app_setting_set $app core_version "$core_version"
|
||||
ynh_app_setting_set $app ldap_version "$ldap_version"
|
||||
|
||||
# Set files and directories permissions
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue