chown after rsync upload in deployment

the problem is that rsync uploads and creates folders :/srv/apps/ec2/v/0.0.9 with the root user(sudo) and the application runs with the ubuntu user. 
this is not a good solution if your application needs to create temporary data in the project's folder
with this fix a chown -R ubuntu:ubuntu is run after the upload

let me know what do you think,
thx