diff --git a/scripts/install b/scripts/install index e57c934..b5a09d6 100644 --- a/scripts/install +++ b/scripts/install @@ -189,9 +189,9 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." # Set permissions to app files -chown -R $app:$app $final_path -chown -R $app:$app $public_path -chmod 750 $public_path +chown -R $app:www-data $final_path +chown -R $app:www-data $public_path +chmod 755 $public_path #================================================= # SETUP LOGROTATE diff --git a/scripts/restore b/scripts/restore index a6153c4..791901b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -74,7 +74,7 @@ ynh_restore_file --origin_path="$final_path" ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files -chown -R $app:$app $final_path +chown -R $app:www-data $final_path #================================================= # SPECIFIC RESTORATION