node[:deploy].each do |application, deploy|
  script "image_permissions" do
    interpreter "bash"
    user "root"
    cwd "#{deploy[:deploy_to]}/current"
    code <<-EOH
    chown -R www-data:www-data public/img
    EOH
  end
end

Add RW permissions to img folder
Add RW permissions to img folder
