Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created January 7, 2011 23:36
Show Gist options
  • Select an option

  • Save Atalanta/770316 to your computer and use it in GitHub Desktop.

Select an option

Save Atalanta/770316 to your computer and use it in GitHub Desktop.
user app['owner'] do
home "#{app['deploy_to']}"
shell "/bin/bash"
end
directory app['deploy_to'] do
owner app['owner']
group app['group']
mode '0755'
recursive true
end
directory "#{app['deploy_to']}/shared" do
owner app['owner']
group app['group']
mode '0755'
recursive true
end
%w{ log pids system config dbbackups published_pages uploaded_local_media }.each do |dir|
directory "#{app['deploy_to']}/shared/#{dir}" do
owner app['owner']
group app['group']
mode '0755'
recursive true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment