Permalink
Browse files

Setting timezone to UTC on install

  • Loading branch information...
1 parent 53dcc02 commit 7e3fdb415f382b57117271076e7d7e170aad1fce @cwsaylor cwsaylor committed Apr 2, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/cap_bootstrap/recipes/base.rb
@@ -11,6 +11,9 @@ def set_default(name, *args, &block)
namespace :deploy do
desc "Install everything onto the server"
task :install do
+ run "#{sudo} bash -c 'echo UTC > /etc/timezone'"
+ run "#{sudo} cp /usr/share/zoneinfo/UTC /etc/localtime"
+ run "#{sudo} dpkg-reconfigure -f noninteractive tzdata"
run "#{sudo} apt-get -y update"
run "#{sudo} apt-get -y install python-software-properties"
end

0 comments on commit 7e3fdb4

Please sign in to comment.