diff --git a/scripts/install b/scripts/install index 323905a..10b96da 100644 --- a/scripts/install +++ b/scripts/install @@ -149,6 +149,8 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions to app files chown -R $app:www-data $final_path +chmod -R ug+rw,o-rwx $final_path +chmod -R ug+x $final_path/flarum #================================================= # FLARUM POST-INSTALL diff --git a/scripts/restore b/scripts/restore index 6cec03b..7059dc1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -72,9 +72,9 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Restoring user rights..." # Set right permissions -chown -R $app: $final_path -chown -R $app:www-data $final_path/storage -chmod -R 0775 $final_path +chown -R $app:www-data $final_path +chmod -R ug+rw,o-rwx $final_path +chmod -R ug+x $final_path/flarum #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 7a8f24e..66b80fd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -251,6 +251,8 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions on app files chown -R $app:www-data $final_path +chmod -R ug+rw,o-rwx $final_path +chmod -R ug+x $final_path/flarum #================================================= # RELOAD NGINX