1
0
Fork 0
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:
tituspijean 2021-11-12 23:37:15 +01:00
parent 60009c3971
commit 588a76c27a
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -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
#=================================================