node[:deploy].each do |application, deploy|
  script "symlink_storage" do
    interpreter "bash"
    user "root"
    cwd "#{deploy[:deploy_to]}"
    code <<-EOH
    mv current/storage/* shared
    rm -rf current/storage
    ln -s #{deploy[:deploy_to]}/shared #{deploy[:deploy_to]}/current/storage
    EOH
  end
end
node[:deploy].each do |application, deploy|
  script "symlink_storage" do
    interpreter "bash"
    user "root"
    cwd "#{deploy[:deploy_to]}"
    code <<-EOH
    mv current/storage/* shared
    rm -rf current/storage
    ln -s #{deploy[:deploy_to]}/shared #{deploy[:deploy_to]}/current/storage
    chown -h #{deploy[:user]}:#{deploy[:group]} #{deploy[:deploy_to]}/current/storage
    EOH
  end
end
Adjust the permissions of the storage symlink
Adjust the permissions of the storage symlink
